Package io.delta.kernel.types
Class StructField
Object
io.delta.kernel.types.StructField
Represents a subfield of
StructType with additional properties and metadata.- Since:
- 3.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StructFieldstatic StringThe name of a row index metadata column. -
Constructor Summary
ConstructorsConstructorDescriptionStructField(String name, DataType dataType, boolean nullable) StructField(String name, DataType dataType, boolean nullable, FieldMetadata metadata) -
Method Summary
-
Field Details
-
METADATA_ROW_INDEX_COLUMN_NAME
The name of a row index metadata column. When present this column must be populated with row index of each row when reading from parquet. -
METADATA_ROW_INDEX_COLUMN
-
-
Constructor Details
-
StructField
-
StructField
-
-
Method Details
-
getName
- Returns:
- the name of this field
-
getDataType
- Returns:
- the data type of this field
-
getMetadata
- Returns:
- the metadata for this field
-
isNullable
public boolean isNullable()- Returns:
- whether this field allows to have a
nullvalue.
-
isMetadataColumn
public boolean isMetadataColumn() -
isDataColumn
public boolean isDataColumn() -
toString
-
toJson
-
equals
-
hashCode
public int hashCode()
-