Enum TSEncoding
- java.lang.Object
-
- java.lang.Enum<TSEncoding>
-
- org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TSEncoding>
public enum TSEncoding extends java.lang.Enum<TSEncoding>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TSEncodingdeserialize(byte encoding)judge the encoding deserialize type.static intgetSerializedSize()byteserialize()judge the encoding deserialize type.static TSEncodingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TSEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLAIN
public static final TSEncoding PLAIN
-
DICTIONARY
public static final TSEncoding DICTIONARY
-
RLE
public static final TSEncoding RLE
-
DIFF
public static final TSEncoding DIFF
-
TS_2DIFF
public static final TSEncoding TS_2DIFF
-
BITMAP
public static final TSEncoding BITMAP
-
GORILLA_V1
public static final TSEncoding GORILLA_V1
-
REGULAR
public static final TSEncoding REGULAR
-
GORILLA
public static final TSEncoding GORILLA
-
ZIGZAG
public static final TSEncoding ZIGZAG
-
FREQ
@Deprecated public static final TSEncoding FREQ
Deprecated.
-
CHIMP
public static final TSEncoding CHIMP
-
SPRINTZ
public static final TSEncoding SPRINTZ
-
RLBE
public static final TSEncoding RLBE
-
-
Method Detail
-
values
public static TSEncoding[] 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 (TSEncoding c : TSEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TSEncoding valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
deserialize
public static TSEncoding deserialize(byte encoding)
judge the encoding deserialize type.- Parameters:
encoding- -use to determine encoding type- Returns:
- -encoding type
-
getSerializedSize
public static int getSerializedSize()
-
serialize
public byte serialize()
judge the encoding deserialize type.- Returns:
- -encoding type
-
-