Class TimePageReader
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.reader.page.TimePageReader
-
public class TimePageReader extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBuffertimeBuffertime column in memoryprotected DecodertimeDecoderdecoder for time column
-
Constructor Summary
Constructors Constructor Description TimePageReader(ByteBuffer pageData, Decoder timeDecoder)TimePageReader(PageHeader pageHeader, ByteBuffer pageData, Decoder timeDecoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TimeRange>getDeleteIntervalList()long[]getNextTimeBatch()In case that we use sequence read, and the page doesn't have statistics, so we won't know time array's length at firstTimeStatisticsgetStatistics()booleanhasNextTime()protected booleanisDeleted(long timestamp)booleanisModified()longnextTime()long[]nextTimeBatch()voidsetDeleteIntervalList(List<TimeRange> list)
-
-
-
Field Detail
-
timeDecoder
protected Decoder timeDecoder
decoder for time column
-
timeBuffer
protected ByteBuffer timeBuffer
time column in memory
-
-
Constructor Detail
-
TimePageReader
public TimePageReader(ByteBuffer pageData, Decoder timeDecoder)
-
TimePageReader
public TimePageReader(PageHeader pageHeader, ByteBuffer pageData, Decoder timeDecoder)
-
-
Method Detail
-
hasNextTime
public boolean hasNextTime() throws IOException- Throws:
IOException
-
nextTime
public long nextTime()
-
nextTimeBatch
public long[] nextTimeBatch() throws IOException- Throws:
IOException
-
getNextTimeBatch
public long[] getNextTimeBatch() throws IOExceptionIn case that we use sequence read, and the page doesn't have statistics, so we won't know time array's length at first- Throws:
IOException
-
getStatistics
public TimeStatistics getStatistics()
-
isModified
public boolean isModified()
-
isDeleted
protected boolean isDeleted(long timestamp)
-
-