Class ValuePageReader
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.reader.page.ValuePageReader
-
public class ValuePageReader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.ByteBuffervalueBuffervalue column in memory
-
Constructor Summary
Constructors Constructor Description ValuePageReader(PageHeader pageHeader, java.nio.ByteBuffer pageData, TSDataType dataType, Decoder valueDecoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillIsDeleted(long[] timestamp, boolean[] isDeleted)byte[]getBitmap()TSDataTypegetDataType()java.util.List<TimeRange>getDeleteIntervalList()StatisticsgetStatistics()protected booleanisDeleted(long timestamp)booleanisModified()BatchDatanextBatch(long[] timeBatch, boolean ascending, Filter filter)return a BatchData with the corresponding timeBatch, the BatchData's dataType is same as this sub sensorTsPrimitiveTypenextValue(long timestamp, int timeIndex)TsPrimitiveType[]nextValueBatch(long[] timeBatch)return the value array of the corresponding time, if this sub sensor don't have a value in a time, just fill it with nullvoidsetDeleteIntervalList(java.util.List<TimeRange> list)voidwriteColumnBuilderWithNextBatch(int readEndIndex, ColumnBuilder columnBuilder, boolean[] keepCurrentRow, boolean[] isDeleted)
-
-
-
Constructor Detail
-
ValuePageReader
public ValuePageReader(PageHeader pageHeader, java.nio.ByteBuffer pageData, TSDataType dataType, Decoder valueDecoder)
-
-
Method Detail
-
nextBatch
public BatchData nextBatch(long[] timeBatch, boolean ascending, Filter filter)
return a BatchData with the corresponding timeBatch, the BatchData's dataType is same as this sub sensor
-
nextValue
public TsPrimitiveType nextValue(long timestamp, int timeIndex)
-
nextValueBatch
public TsPrimitiveType[] nextValueBatch(long[] timeBatch)
return the value array of the corresponding time, if this sub sensor don't have a value in a time, just fill it with null
-
writeColumnBuilderWithNextBatch
public void writeColumnBuilderWithNextBatch(int readEndIndex, ColumnBuilder columnBuilder, boolean[] keepCurrentRow, boolean[] isDeleted)
-
getStatistics
public Statistics getStatistics()
-
setDeleteIntervalList
public void setDeleteIntervalList(java.util.List<TimeRange> list)
-
getDeleteIntervalList
public java.util.List<TimeRange> getDeleteIntervalList()
-
isModified
public boolean isModified()
-
isDeleted
protected boolean isDeleted(long timestamp)
-
fillIsDeleted
public void fillIsDeleted(long[] timestamp, boolean[] isDeleted)
-
getDataType
public TSDataType getDataType()
-
getBitmap
public byte[] getBitmap()
-
-