Package org.apache.parquet.column
Class ColumnDescriptor
java.lang.Object
org.apache.parquet.column.ColumnDescriptor
- All Implemented Interfaces:
Comparable<ColumnDescriptor>
Describes a column's type as well as its position in its containing schema.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnDescriptor(String[] path, PrimitiveType.PrimitiveTypeName type, int maxRep, int maxDef) Deprecated.ColumnDescriptor(String[] path, PrimitiveType.PrimitiveTypeName type, int typeLength, int maxRep, int maxDef) Deprecated.will be removed in 2.0.0; UseColumnDescriptor(String[], PrimitiveType, int, int)ColumnDescriptor(String[] path, PrimitiveType type, int maxRep, int maxDef) -
Method Summary
-
Constructor Details
-
ColumnDescriptor
@Deprecated public ColumnDescriptor(String[] path, PrimitiveType.PrimitiveTypeName type, int maxRep, int maxDef) Deprecated.will be removed in 2.0.0; UseColumnDescriptor(String[], PrimitiveType, int, int)- Parameters:
path- the path to the leaf field in the schematype- the type of the fieldmaxRep- the maximum repetition level for that pathmaxDef- the maximum definition level for that path
-
ColumnDescriptor
@Deprecated public ColumnDescriptor(String[] path, PrimitiveType.PrimitiveTypeName type, int typeLength, int maxRep, int maxDef) Deprecated.will be removed in 2.0.0; UseColumnDescriptor(String[], PrimitiveType, int, int)- Parameters:
path- the path to the leaf field in the schematype- the type of the fieldtypeLength- the length of the type, if type is a fixed-length byte arraymaxRep- the maximum repetition level for that pathmaxDef- the maximum definition level for that path
-
ColumnDescriptor
- Parameters:
path- the path to the leaf field in the schematype- the type of the fieldmaxRep- the maximum repetition level for that pathmaxDef- the maximum definition level for that path
-
-
Method Details
-
getPath
- Returns:
- the path to the leaf field in the schema
-
getMaxRepetitionLevel
public int getMaxRepetitionLevel()- Returns:
- the maximum repetition level for that path
-
getMaxDefinitionLevel
public int getMaxDefinitionLevel()- Returns:
- the maximum definition level for that path
-
getType
Deprecated.will removed in 2.0.0. UsegetPrimitiveType()instead.- Returns:
- the type of that column
-
getTypeLength
Deprecated.will removed in 2.0.0. UsegetPrimitiveType()instead.- Returns:
- the size of the type
-
getPrimitiveType
- Returns:
- the primitive type object of the column
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<ColumnDescriptor>
-
toString
-
ColumnDescriptor(String[], PrimitiveType, int, int)