Package org.apache.druid.frame
Enum FrameType
- All Implemented Interfaces:
Serializable,Comparable<FrameType>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionColumnar frames, written byColumnarFrameWriter.Row-based frames (version 1), written byRowBasedFrameWriter.Row-based frames (version 2), written byRowBasedFrameWriter. -
Method Summary
Modifier and TypeMethodDescriptionstatic FrameTypeforVersion(byte versionByte) Returns the frame type for a particular version byte, or null if the version byte is unrecognized.booleanWhether this is a columnar type, written byColumnarFrameWriter.booleanWhether this is a row-based type, written byRowBasedFrameWriter.static FrameTypeReturns the latest columnar frame type.static FrameTypeReturns the latest row-based frame type.static FrameTypeReturns the enum constant of this type with the specified name.static FrameType[]values()Returns an array containing the constants of this enum type, in the order they are declared.byteversion()
-
Enum Constant Details
-
COLUMNAR
Columnar frames, written byColumnarFrameWriter. -
ROW_BASED_V1
Row-based frames (version 1), written byRowBasedFrameWriter. Obsolete. Differs fromROW_BASED_V2in how floating-point numbers are serialized. This one usesTransformUtils.transformFromDoubleLegacy(double)andTransformUtils.transformFromFloatLegacy(float), which sort incorrectly. -
ROW_BASED_V2
Row-based frames (version 2), written byRowBasedFrameWriter.
-
-
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
-
forVersion
Returns the frame type for a particular version byte, or null if the version byte is unrecognized. -
latestRowBased
Returns the latest row-based frame type. -
latestColumnar
Returns the latest columnar frame type. -
version
public byte version() -
isRowBased
public boolean isRowBased()Whether this is a row-based type, written byRowBasedFrameWriter. -
isColumnar
public boolean isColumnar()Whether this is a columnar type, written byColumnarFrameWriter.
-