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
public static enum PrimitiveType.PrimitiveTypeName extends Enum<PrimitiveType.PrimitiveTypeName>
Supported Primitive types
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract 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 recordConsumerabstract <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 representationstatic PrimitiveType.PrimitiveTypeNamevalueOf(String name)Returns 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 Detail
-
INT64
public static final PrimitiveType.PrimitiveTypeName INT64
-
INT32
public static final PrimitiveType.PrimitiveTypeName INT32
-
BOOLEAN
public static final PrimitiveType.PrimitiveTypeName BOOLEAN
-
BINARY
public static final PrimitiveType.PrimitiveTypeName BINARY
-
FLOAT
public static final PrimitiveType.PrimitiveTypeName FLOAT
-
DOUBLE
public static final PrimitiveType.PrimitiveTypeName DOUBLE
-
INT96
public static final PrimitiveType.PrimitiveTypeName INT96
-
FIXED_LEN_BYTE_ARRAY
public static final PrimitiveType.PrimitiveTypeName FIXED_LEN_BYTE_ARRAY
-
-
Method Detail
-
values
public static PrimitiveType.PrimitiveTypeName[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PrimitiveType.PrimitiveTypeName c : PrimitiveType.PrimitiveTypeName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrimitiveType.PrimitiveTypeName valueOf(String name)
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
public abstract String toString(ColumnReader columnReader)
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 extends Exception
- Throws:
E extends Exception
-
-