public class TimePageReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
timeBuffer
time column in memory
|
protected Decoder |
timeDecoder
decoder for time column
|
| Constructor and Description |
|---|
TimePageReader(ByteBuffer pageData,
Decoder timeDecoder) |
TimePageReader(PageHeader pageHeader,
ByteBuffer pageData,
Decoder timeDecoder) |
| Modifier and Type | Method and 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 first
|
TimeStatistics |
getStatistics() |
boolean |
hasNextTime() |
protected boolean |
isDeleted(long timestamp) |
boolean |
isModified() |
long |
nextTime() |
long[] |
nextTimeBatch() |
void |
setDeleteIntervalList(List<TimeRange> list) |
protected Decoder timeDecoder
protected ByteBuffer timeBuffer
public TimePageReader(ByteBuffer pageData, Decoder timeDecoder)
public TimePageReader(PageHeader pageHeader, ByteBuffer pageData, Decoder timeDecoder)
public boolean hasNextTime()
throws IOException
IOExceptionpublic long nextTime()
public long[] nextTimeBatch()
throws IOException
IOExceptionpublic long[] getNextTimeBatch()
throws IOException
IOExceptionpublic TimeStatistics getStatistics()
public boolean isModified()
protected boolean isDeleted(long timestamp)
Copyright © 2022 The Apache Software Foundation. All rights reserved.