public class DescReadWriteBatchData extends DescReadBatchData
BatchData.BatchDataTypebatchDataType, binaryRet, booleanRet, capacity, CAPACITY_THRESHOLD, count, dataType, doubleRet, floatRet, intRet, longRet, readCurArrayIndex, readCurListIndex, timeRet, vectorRet, writeCurArrayIndex, writeCurListIndex| Constructor and Description |
|---|
DescReadWriteBatchData(TSDataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
BatchData |
flip()
Read: When put data, the writeIndex increases while the readIndex remains 0.
|
Binary |
getBinaryByIndex(int idx)
Get the idx th binary value by the time ascending order
|
boolean |
getBooleanByIndex(int idx)
Get the idx th boolean value by the time ascending order
|
double |
getDoubleByIndex(int idx)
Get the idx th double value by the time ascending order
|
float |
getFloatByIndex(int idx)
Get the idx th float value by the time ascending order
|
int |
getIntByIndex(int idx)
Get the idx th int value by the time ascending order
|
long |
getLongByIndex(int idx)
Get the idx th long value by the time ascending order
|
long |
getTimeByIndex(int idx)
Get the idx th timestamp by the time ascending order
|
TsPrimitiveType[] |
getVectorByIndex(int idx)
Get the idx th vector value by the time ascending order
|
boolean |
hasCurrent() |
void |
next() |
void |
putBinary(long t,
Binary v)
put binary data reversely.
|
void |
putBoolean(long t,
boolean v)
put boolean data reversely.
|
void |
putDouble(long t,
double v)
put double data reversely.
|
void |
putFloat(long t,
float v)
put float data reversely.
|
void |
putInt(long t,
int v)
put int data reversely.
|
void |
putLong(long t,
long v)
put long data reversely.
|
void |
putVector(long t,
TsPrimitiveType[] v)
put vector data.
|
void |
resetBatchData()
This method is used to reset batch data when more than one group by aggregation functions visit
the same batch data
|
void |
serializeData(DataOutputStream outputStream)
For any implementation of BatchData, the data serializing sequence must equal the one of
writing, otherwise after deserializing the sequence will be reversed
|
getValueInTimestampcurrentTime, currentTsPrimitiveType, currentValue, getBatchDataIterator, getBatchDataIterator, getBatchDataType, getBinary, getBoolean, getDataType, getDouble, getFloat, getInt, getLastPairBeforeOrEqualTimestamp, getLong, getMaxTimestamp, getMinTimestamp, getReadCurArrayIndex, getReadCurListIndex, getVector, init, isEmpty, length, putAnObject, resetBatchData, setBinary, setBoolean, setDataType, setDouble, setFloat, setInt, setLong, setTime, setVectorpublic DescReadWriteBatchData(TSDataType dataType)
public void putBoolean(long t,
boolean v)
putBoolean in class BatchDatat - timestampv - boolean datapublic void putInt(long t,
int v)
public void putLong(long t,
long v)
public void putFloat(long t,
float v)
public void putDouble(long t,
double v)
public void putBinary(long t,
Binary v)
public void putVector(long t,
TsPrimitiveType[] v)
public boolean hasCurrent()
hasCurrent in class DescReadBatchDatapublic void next()
next in class DescReadBatchDatapublic void resetBatchData()
BatchDataresetBatchData in class DescReadBatchDatapublic long getTimeByIndex(int idx)
BatchDatagetTimeByIndex in class BatchDatapublic long getLongByIndex(int idx)
BatchDatagetLongByIndex in class BatchDatapublic double getDoubleByIndex(int idx)
BatchDatagetDoubleByIndex in class BatchDatapublic int getIntByIndex(int idx)
BatchDatagetIntByIndex in class BatchDatapublic float getFloatByIndex(int idx)
BatchDatagetFloatByIndex in class BatchDatapublic Binary getBinaryByIndex(int idx)
BatchDatagetBinaryByIndex in class BatchDatapublic boolean getBooleanByIndex(int idx)
BatchDatagetBooleanByIndex in class BatchDatapublic TsPrimitiveType[] getVectorByIndex(int idx)
BatchDatagetVectorByIndex in class BatchDatapublic void serializeData(DataOutputStream outputStream) throws IOException
BatchDataserializeData in class BatchDataIOExceptionpublic BatchData flip()
flip in class DescReadBatchDataCopyright © 2022 The Apache Software Foundation. All rights reserved.