public enum TSDataType extends Enum<TSDataType>
| Enum Constant and Description |
|---|
BOOLEAN
BOOLEAN
|
DOUBLE
DOUBLE
|
FLOAT
FLOAT
|
INT32
INT32
|
INT64
INT64
|
TEXT
TEXT
|
VECTOR
VECTOR
|
| Modifier and Type | Method and Description |
|---|---|
static TSDataType |
deserialize(byte type)
give an integer to return a data type.
|
static TSDataType |
deserializeFrom(ByteBuffer buffer) |
int |
getDataTypeSize() |
static int |
getSerializedSize() |
static TSDataType |
getTsDataType(byte type) |
byte |
getType() |
boolean |
isNumeric() |
byte |
serialize() |
void |
serializeTo(ByteBuffer byteBuffer) |
void |
serializeTo(DataOutputStream outputStream) |
static TSDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TSDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TSDataType BOOLEAN
public static final TSDataType INT32
public static final TSDataType INT64
public static final TSDataType FLOAT
public static final TSDataType DOUBLE
public static final TSDataType TEXT
public static final TSDataType VECTOR
public static TSDataType[] values()
for (TSDataType c : TSDataType.values()) System.out.println(c);
public static TSDataType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TSDataType deserialize(byte type)
type - -param to judge enum typepublic byte getType()
public static TSDataType getTsDataType(byte type)
public static TSDataType deserializeFrom(ByteBuffer buffer)
public static int getSerializedSize()
public void serializeTo(ByteBuffer byteBuffer)
public void serializeTo(DataOutputStream outputStream) throws IOException
IOExceptionpublic int getDataTypeSize()
public byte serialize()
public boolean isNumeric()
Copyright © 2022 The Apache Software Foundation. All rights reserved.