Class DoubleTVList
- java.lang.Object
-
- org.apache.iotdb.db.utils.datastructure.TVList
-
- org.apache.iotdb.db.utils.datastructure.DoubleTVList
-
- All Implemented Interfaces:
SerializedSize,WALEntryValue
public class DoubleTVList extends TVList
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.utils.datastructure.TVList
ERR_DATATYPE_NOT_CONSISTENT, minTime, pivotTime, referenceCount, rowCount, SMALL_ARRAY_LENGTH, sorted, sortedTimestamps, timestamps
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleTVListclone()static DoubleTVListdeserialize(java.io.DataInputStream stream)protected voidexpandValues()org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypegetDataType()doublegetDouble(int index)org.apache.iotdb.tsfile.read.TimeValuePairgetTimeValuePair(int index)for logprotected org.apache.iotdb.tsfile.read.TimeValuePairgetTimeValuePair(int index, long time, java.lang.Integer floatPrecision, org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding encoding)voidputDouble(long timestamp, double value)voidputDoubles(long[] time, double[] value, org.apache.iotdb.tsfile.utils.BitMap bitMap, int start, int end)protected voidreleaseLastValueArray()protected voidreverseRange(int lo, int hi)protected voidsaveAsPivot(int pos)intserializedSize()Calculate size after serialization.voidserializeToWAL(IWALByteBufferView buffer)Serialize usingIWALByteBufferView, which encapsulates some actions to deal withBufferOverflowExceptionoccurs inByteBuffer.protected voidset(int src, int dest)protected voidset(int index, long timestamp, double value)protected voidsetFromSorted(int src, int dest)protected voidsetPivotTo(int pos)protected voidsetToSorted(int src, int dest)voidsort()protected voidwriteValidValuesIntoTsBlock(org.apache.iotdb.tsfile.read.common.block.TsBlockBuilder builder, int floatPrecision, org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding encoding, java.util.List<org.apache.iotdb.tsfile.read.common.TimeRange> deletionList)-
Methods inherited from class org.apache.iotdb.db.utils.datastructure.TVList
binarySort, buildTsBlock, buildTsBlock, checkExpansion, clear, clearSortedTime, clearTime, clone, cloneAs, cloneTime, compare, countRunAndMakeAscending, delete, getAlignedValue, getBinary, getBoolean, getFloat, getInt, getLong, getMinTime, getPrimitiveArraysByType, getReferenceCount, getTime, getTvListByColumnIndex, getValueIndex, getVersion, increaseReferenceCount, isPointDeleted, isSorted, merge, newList, putAlignedValue, putAlignedValues, putBinaries, putBinary, putBoolean, putBooleans, putFloat, putFloats, putInt, putInts, putLong, putLongs, releaseLastTimeArray, roundValueWithGivenPrecision, roundValueWithGivenPrecision, rowCount, sort, tvListArrayMemCost
-
-
-
-
Method Detail
-
set
protected void set(int index, long timestamp, double value)
-
clone
public DoubleTVList clone()
-
setFromSorted
protected void setFromSorted(int src, int dest)- Specified by:
setFromSortedin classTVList
-
setToSorted
protected void setToSorted(int src, int dest)- Specified by:
setToSortedin classTVList
-
reverseRange
protected void reverseRange(int lo, int hi)- Specified by:
reverseRangein classTVList
-
expandValues
protected void expandValues()
- Specified by:
expandValuesin classTVList
-
saveAsPivot
protected void saveAsPivot(int pos)
- Specified by:
saveAsPivotin classTVList
-
setPivotTo
protected void setPivotTo(int pos)
- Specified by:
setPivotToin classTVList
-
getTimeValuePair
public org.apache.iotdb.tsfile.read.TimeValuePair getTimeValuePair(int index)
Description copied from class:TVListfor log- Specified by:
getTimeValuePairin classTVList
-
getTimeValuePair
protected org.apache.iotdb.tsfile.read.TimeValuePair getTimeValuePair(int index, long time, java.lang.Integer floatPrecision, org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding encoding)- Specified by:
getTimeValuePairin classTVList
-
writeValidValuesIntoTsBlock
protected void writeValidValuesIntoTsBlock(org.apache.iotdb.tsfile.read.common.block.TsBlockBuilder builder, int floatPrecision, org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding encoding, java.util.List<org.apache.iotdb.tsfile.read.common.TimeRange> deletionList)- Specified by:
writeValidValuesIntoTsBlockin classTVList
-
releaseLastValueArray
protected void releaseLastValueArray()
- Specified by:
releaseLastValueArrayin classTVList
-
putDoubles
public void putDoubles(long[] time, double[] value, org.apache.iotdb.tsfile.utils.BitMap bitMap, int start, int end)- Overrides:
putDoublesin classTVList
-
getDataType
public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getDataType()
- Specified by:
getDataTypein classTVList
-
serializedSize
public int serializedSize()
Description copied from interface:SerializedSizeCalculate size after serialization.- Returns:
- bytes number
-
serializeToWAL
public void serializeToWAL(IWALByteBufferView buffer)
Description copied from interface:WALEntryValueSerialize usingIWALByteBufferView, which encapsulates some actions to deal withBufferOverflowExceptionoccurs inByteBuffer.
-
deserialize
public static DoubleTVList deserialize(java.io.DataInputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
-