Class Field
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.common.Field
-
public class Field extends java.lang.ObjectField is component of oneRowRecordwhich stores a value in specific data type. The value type of Field is primitive(int long, float, double, binary, boolean).
-
-
Constructor Summary
Constructors Constructor Description Field(TSDataType dataType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Fieldcopy(Field field)BinarygetBinaryV()booleangetBoolV()TSDataTypegetDataType()doublegetDoubleV()static FieldgetField(java.lang.Object value, TSDataType dataType)floatgetFloatV()intgetIntV()longgetLongV()java.lang.ObjectgetObjectValue(TSDataType dataType)java.lang.StringgetStringValue()get field value and convert to string.voidsetBinaryV(Binary binaryV)voidsetBoolV(boolean boolV)voidsetDoubleV(double doubleV)voidsetFloatV(float floatV)voidsetIntV(int intV)voidsetLongV(long longV)static voidsetTsPrimitiveValue(TsPrimitiveType value, Field field)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Field
public Field(TSDataType dataType)
-
-
Method Detail
-
getDataType
public TSDataType getDataType()
-
getBoolV
public boolean getBoolV()
-
setBoolV
public void setBoolV(boolean boolV)
-
getIntV
public int getIntV()
-
setIntV
public void setIntV(int intV)
-
getLongV
public long getLongV()
-
setLongV
public void setLongV(long longV)
-
getFloatV
public float getFloatV()
-
setFloatV
public void setFloatV(float floatV)
-
getDoubleV
public double getDoubleV()
-
setDoubleV
public void setDoubleV(double doubleV)
-
getBinaryV
public Binary getBinaryV()
-
setBinaryV
public void setBinaryV(Binary binaryV)
-
getStringValue
public java.lang.String getStringValue()
get field value and convert to string.- Returns:
- value string
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getObjectValue
public java.lang.Object getObjectValue(TSDataType dataType)
-
getField
public static Field getField(java.lang.Object value, TSDataType dataType)
-
setTsPrimitiveValue
public static void setTsPrimitiveValue(TsPrimitiveType value, Field field)
-
-