public class Field extends Object
RowRecord which stores a value in specific data type. The value
type of Field is primitive(int long, float, double, binary, boolean).| Constructor and Description |
|---|
Field(TSDataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
static Field |
copy(Field field) |
Binary |
getBinaryV() |
boolean |
getBoolV() |
TSDataType |
getDataType() |
double |
getDoubleV() |
static Field |
getField(Object value,
TSDataType dataType) |
float |
getFloatV() |
int |
getIntV() |
long |
getLongV() |
Object |
getObjectValue(TSDataType dataType) |
String |
getStringValue()
get field value and convert to string.
|
void |
setBinaryV(Binary binaryV) |
void |
setBoolV(boolean boolV) |
void |
setDoubleV(double doubleV) |
void |
setFloatV(float floatV) |
void |
setIntV(int intV) |
void |
setLongV(long longV) |
static void |
setTsPrimitiveValue(TsPrimitiveType value,
Field field) |
String |
toString() |
public Field(TSDataType dataType)
public TSDataType getDataType()
public boolean getBoolV()
public void setBoolV(boolean boolV)
public int getIntV()
public void setIntV(int intV)
public long getLongV()
public void setLongV(long longV)
public float getFloatV()
public void setFloatV(float floatV)
public double getDoubleV()
public void setDoubleV(double doubleV)
public Binary getBinaryV()
public void setBinaryV(Binary binaryV)
public String getStringValue()
public Object getObjectValue(TSDataType dataType)
public static Field getField(Object value, TSDataType dataType)
public static void setTsPrimitiveValue(TsPrimitiveType value, Field field)
Copyright © 2022 The Apache Software Foundation. All rights reserved.