Enum Packer
- java.lang.Object
-
- java.lang.Enum<Packer>
-
- org.apache.parquet.column.values.bitpacking.Packer
-
- All Implemented Interfaces:
Serializable,Comparable<Packer>
public enum Packer extends Enum<Packer>
Factory for packing implementations
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIG_ENDIANpackers who fill the Least Significant Bit First int and byte packer have the same result on Big Endian architecturesLITTLE_ENDIANpackers who fill the Most Significant Bit first int and byte packer have the same result on Little Endian architectures
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BytePackernewBytePacker(int width)abstract BytePackerForLongnewBytePackerForLong(int width)BytePackernewBytePackerVector(int width)abstract IntPackernewIntPacker(int width)static PackervalueOf(String name)Returns the enum constant of this type with the specified name.static Packer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIG_ENDIAN
public static final Packer BIG_ENDIAN
packers who fill the Least Significant Bit First int and byte packer have the same result on Big Endian architectures
-
LITTLE_ENDIAN
public static final Packer LITTLE_ENDIAN
packers who fill the Most Significant Bit first int and byte packer have the same result on Little Endian architectures
-
-
Method Detail
-
values
public static Packer[] 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 (Packer c : Packer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Packer 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
-
newIntPacker
public abstract IntPacker newIntPacker(int width)
- Parameters:
width- the width in bits of the packed values- Returns:
- an int based packer
-
newBytePacker
public abstract BytePacker newBytePacker(int width)
- Parameters:
width- the width in bits of the packed values- Returns:
- a byte based packer
-
newBytePackerVector
public BytePacker newBytePackerVector(int width)
-
newBytePackerForLong
public abstract BytePackerForLong newBytePackerForLong(int width)
- Parameters:
width- the width in bits of the packed values- Returns:
- a byte based packer for INT64
-
-