public abstract class TsPrimitiveType extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TsPrimitiveType.TsBinary |
static class |
TsPrimitiveType.TsBoolean |
static class |
TsPrimitiveType.TsDouble |
static class |
TsPrimitiveType.TsFloat |
static class |
TsPrimitiveType.TsInt |
static class |
TsPrimitiveType.TsLong |
static class |
TsPrimitiveType.TsVector |
| Constructor and Description |
|---|
TsPrimitiveType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Binary |
getBinary() |
boolean |
getBoolean() |
static TsPrimitiveType |
getByType(TSDataType dataType)
get tsPrimitiveType by resultDataType.
|
static TsPrimitiveType |
getByType(TSDataType dataType,
Object v)
get tsPrimitiveType by resultDataType and initial value.
|
abstract TSDataType |
getDataType() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
abstract int |
getSize()
get the size of one instance of current class.
|
abstract String |
getStringValue() |
abstract Object |
getValue() |
TsPrimitiveType[] |
getVector() |
int |
hashCode() |
abstract void |
reset() |
void |
setBinary(Binary val) |
void |
setBoolean(boolean val) |
void |
setDouble(double val) |
void |
setFloat(float val) |
void |
setInt(int val) |
void |
setLong(long val) |
abstract void |
setObject(Object val) |
void |
setVector(TsPrimitiveType[] val) |
String |
toString() |
public static TsPrimitiveType getByType(TSDataType dataType)
dataType - given TsDataTypepublic static TsPrimitiveType getByType(TSDataType dataType, Object v)
dataType - given TsDataTypev - initial valuepublic boolean getBoolean()
public int getInt()
public long getLong()
public float getFloat()
public double getDouble()
public Binary getBinary()
public TsPrimitiveType[] getVector()
public void setBoolean(boolean val)
public void setInt(int val)
public void setLong(long val)
public void setFloat(float val)
public void setDouble(double val)
public void setBinary(Binary val)
public void setVector(TsPrimitiveType[] val)
public abstract void setObject(Object val)
public abstract void reset()
public abstract int getSize()
public abstract Object getValue()
public abstract String getStringValue()
public abstract TSDataType getDataType()
Copyright © 2022 The Apache Software Foundation. All rights reserved.