public class BasicInt128 extends AbstractScalar
Entity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.DURATION, Entity.PARTITION_TYPE| Constructor and Description |
|---|
BasicInt128(ExtendedDataInput in) |
BasicInt128(long high,
long low) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static BasicInt128 |
fromString(String num) |
Entity.DATA_CATEGORY |
getDataCategory() |
Entity.DATA_TYPE |
getDataType() |
String |
getJsonString() |
long |
getLeastSignicantBits() |
Long2 |
getLong2() |
long |
getMostSignicantBits() |
Number |
getNumber() |
String |
getString() |
Temporal |
getTemporal() |
int |
hashBucket(int buckets) |
int |
hashCode() |
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() |
protected void |
writeScalarToOutputStream(ExtendedDataOutput out) |
columns, getDataForm, getScale, rows, toString, writegetDataCategory, isChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVectorclone, finalize, getClass, notify, notifyAll, wait, wait, waitisChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVector, typeToCategory, writeCompressedprotected Long2 value
public BasicInt128(long high,
long low)
public BasicInt128(ExtendedDataInput in) throws IOException
IOExceptionpublic Long2 getLong2()
public boolean isNull()
Entitypublic void setNull()
public long getMostSignicantBits()
public long getLeastSignicantBits()
public Entity.DATA_CATEGORY getDataCategory()
public Entity.DATA_TYPE getDataType()
public String getString()
public int hashBucket(int buckets)
public String getJsonString()
protected void writeScalarToOutputStream(ExtendedDataOutput out) throws IOException
writeScalarToOutputStream in class AbstractScalarIOExceptionpublic static BasicInt128 fromString(String num)
Copyright © 2023 DolphinDB. All rights reserved.