public interface Entity
| Modifier and Type | Interface and Description |
|---|---|
static class |
Entity.DATA_CATEGORY |
static class |
Entity.DATA_FORM |
static class |
Entity.DATA_TYPE |
static class |
Entity.DURATION |
static class |
Entity.PARTITION_TYPE |
| Modifier and Type | Method and Description |
|---|---|
int |
columns() |
Entity.DATA_CATEGORY |
getDataCategory() |
Entity.DATA_FORM |
getDataForm() |
Entity.DATA_TYPE |
getDataType() |
default String |
getJsonString() |
default Number |
getNumber() |
String |
getString() |
default Temporal |
getTemporal() |
default int |
hashBucket(int buckets) |
boolean |
isChart() |
boolean |
isChunk() |
boolean |
isDictionary() |
boolean |
isMatrix() |
default boolean |
isNull()
Below methods are extract from Scalar interface, include: isNull、setNull、getNumber、getTemporal、hashBucket、getJsonString
Purpose: Because new version now is support return Entity, if clients haven't modified old use(eg, use Scalar special method)
need to adapt it, so the solution is extract methods from Scalar to its parent interface Entity.
|
boolean |
isPair() |
boolean |
isScalar() |
boolean |
isTable() |
boolean |
isVector() |
int |
rows() |
default void |
setNull() |
static Entity.DATA_CATEGORY |
typeToCategory(Entity.DATA_TYPE type) |
void |
write(ExtendedDataOutput output) |
default void |
writeCompressed(ExtendedDataOutput output) |
Entity.DATA_FORM getDataForm()
Entity.DATA_CATEGORY getDataCategory()
Entity.DATA_TYPE getDataType()
int rows()
int columns()
String getString()
void write(ExtendedDataOutput output) throws IOException
IOExceptiondefault void writeCompressed(ExtendedDataOutput output) throws IOException
IOExceptionboolean isScalar()
boolean isVector()
boolean isPair()
boolean isTable()
boolean isMatrix()
boolean isDictionary()
boolean isChart()
boolean isChunk()
static Entity.DATA_CATEGORY typeToCategory(Entity.DATA_TYPE type)
default boolean isNull()
default void setNull()
default int hashBucket(int buckets)
default String getJsonString()
Copyright © 2023 DolphinDB. All rights reserved.