Package org.apache.parquet.schema
Enum PrimitiveType.PrimitiveTypeName
java.lang.Object
java.lang.Enum<PrimitiveType.PrimitiveTypeName>
org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName
- All Implemented Interfaces:
Serializable,Comparable<PrimitiveType.PrimitiveTypeName>
- Enclosing class:
- PrimitiveType
Supported Primitive types
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddValueToPrimitiveConverter(PrimitiveConverter primitiveConverter, ColumnReader columnReader) abstract voidaddValueToRecordConsumer(RecordConsumer recordConsumer, ColumnReader columnReader) reads the value from the columnReader with the appropriate accessor and writes it to the recordConsumercomparator(LogicalTypeAnnotation logicalType) abstract <T,E extends Exception>
Tconvert(PrimitiveType.PrimitiveTypeNameConverter<T, E> converter) abstract StringtoString(ColumnReader columnReader) reads the value from the columnReader with the appropriate accessor and returns a String representationReturns the enum constant of this type with the specified name.static PrimitiveType.PrimitiveTypeName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INT64
-
INT32
-
BOOLEAN
-
BINARY
-
FLOAT
-
DOUBLE
-
INT96
-
FIXED_LEN_BYTE_ARRAY
-
-
Field Details
-
getMethod
-
javaType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
reads the value from the columnReader with the appropriate accessor and returns a String representation- Parameters:
columnReader- where to read- Returns:
- a string
-
addValueToRecordConsumer
public abstract void addValueToRecordConsumer(RecordConsumer recordConsumer, ColumnReader columnReader) reads the value from the columnReader with the appropriate accessor and writes it to the recordConsumer- Parameters:
recordConsumer- where to writecolumnReader- where to read from
-
addValueToPrimitiveConverter
public abstract void addValueToPrimitiveConverter(PrimitiveConverter primitiveConverter, ColumnReader columnReader) -
convert
public abstract <T,E extends Exception> T convert(PrimitiveType.PrimitiveTypeNameConverter<T, E> converter) throws E- Throws:
E extends Exception
-
comparator
-