Package org.apache.parquet.column
Class ColumnDescriptor
- java.lang.Object
-
- org.apache.parquet.column.ColumnDescriptor
-
- All Implemented Interfaces:
Comparable<ColumnDescriptor>
public class ColumnDescriptor extends Object implements Comparable<ColumnDescriptor>
Describes a column's type as well as its position in its containing schema.
-
-
Constructor Summary
Constructors Constructor Description ColumnDescriptor(String[] path, PrimitiveType.PrimitiveTypeName type, int maxRep, int maxDef)Deprecated.will be removed in 2.0.0; UseColumnDescriptor(String[], PrimitiveType, int, int)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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(ColumnDescriptor o)booleanequals(Object other)intgetMaxDefinitionLevel()intgetMaxRepetitionLevel()String[]getPath()PrimitiveTypegetPrimitiveType()PrimitiveType.PrimitiveTypeNamegetType()Deprecated.will removed in 2.0.0.intgetTypeLength()Deprecated.will removed in 2.0.0.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
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
public ColumnDescriptor(String[] path, PrimitiveType type, int maxRep, int maxDef)
- 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 Detail
-
getPath
public String[] 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 public PrimitiveType.PrimitiveTypeName getType()
Deprecated.will removed in 2.0.0. UsegetPrimitiveType()instead.- Returns:
- the type of that column
-
getTypeLength
@Deprecated public int getTypeLength()
Deprecated.will removed in 2.0.0. UsegetPrimitiveType()instead.- Returns:
- the size of the type
-
getPrimitiveType
public PrimitiveType getPrimitiveType()
- Returns:
- the primitive type object of the column
-
compareTo
public int compareTo(ColumnDescriptor o)
- Specified by:
compareToin interfaceComparable<ColumnDescriptor>
-
-