public interface RecordSchema
Modifier and Type | Method and Description |
---|---|
Optional<DataType> |
getDataType(String fieldName) |
List<DataType> |
getDataTypes() |
RecordField |
getField(int index) |
Optional<RecordField> |
getField(String fieldName) |
int |
getFieldCount() |
List<String> |
getFieldNames() |
List<RecordField> |
getFields() |
SchemaIdentifier |
getIdentifier() |
Optional<String> |
getSchemaFormat() |
Optional<String> |
getSchemaName() |
Optional<String> |
getSchemaNamespace() |
Optional<String> |
getSchemaText() |
List<RecordField> getFields()
int getFieldCount()
RecordField getField(int index)
index
- the 0-based index of which field to returnIndexOutOfBoundsException
- if the index is < 0 or >= the number of fields (determined by getFieldCount()
).Optional<DataType> getDataType(String fieldName)
fieldName
- the name of the field whose type is desirednull
if the schema does not contain a field with the given nameOptional<String> getSchemaText()
Optional<String> getSchemaFormat()
Optional<RecordField> getField(String fieldName)
fieldName
- the name of the fieldSchemaIdentifier getIdentifier()
Copyright © 2021 Apache NiFi Project. All rights reserved.