Class FileSchema
java.lang.Object
dev.hardwood.schema.FileSchema
Root schema container representing the complete Parquet schema.
Supports both flat schemas and nested structures (structs, lists).
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileSchemafromSchemaElements(List<SchemaElement> elements) Reconstruct schema from Thrift SchemaElement list.getColumn(int index) intFinds a top-level field by name in the schema tree.getName()Returns the hierarchical schema tree representation.booleanReturns true if this schema supports direct columnar access.toString()
-
Method Details
-
getName
-
getColumns
-
getColumn
-
getColumn
-
getColumnCount
public int getColumnCount() -
getRootNode
Returns the hierarchical schema tree representation. -
getField
Finds a top-level field by name in the schema tree. -
isFlatSchema
public boolean isFlatSchema()Returns true if this schema supports direct columnar access. For such schemas, enabling direct columnar access without record assembly.A schema supports columnar access if all top-level fields are primitives (no nested structs, lists, or maps) and no columns have repetition.
-
fromSchemaElements
Reconstruct schema from Thrift SchemaElement list. -
toString
-