public interface Scalar extends Entity
Entity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.DURATION, Entity.PARTITION_TYPE| Modifier and Type | Method and Description |
|---|---|
String |
getJsonString() |
Number |
getNumber() |
int |
getScale() |
Temporal |
getTemporal() |
int |
hashBucket(int buckets) |
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.
|
void |
setNull() |
columns, getDataCategory, getDataForm, getDataType, getString, isChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVector, rows, typeToCategory, write, writeCompressedboolean isNull()
EntityTemporal getTemporal() throws Exception
getTemporal in interface EntityExceptionint hashBucket(int buckets)
hashBucket in interface EntityString getJsonString()
getJsonString in interface Entityint getScale()
Copyright © 2023 DolphinDB. All rights reserved.