|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataStreamIndex
DataStreamIndex is an interface to a stream's data index to support reading. A DataStreamIndex is Iterable over the data block indices stored in the index.
Method Summary | |
---|---|
long |
getEndTime()
Returns the timestamp of the last data point in the last data block in this index -- the maximum time for all data in the stream. |
int |
getFirstBlock()
Returns the number of the first data block for this data stream, or -1 if there are no blocks in this index. |
int |
getLastBlock()
Returns the last data block index for this data stream, or -1 if there are no blocks in this index. |
int |
getSecondBlock()
Return the second data block index for this data stream, or -1 if there is not a second block. |
long |
getStartTime()
Returns the timestamp of the first data point in the first data block in this index -- the minimum time for all data in the stream. |
DBIterator<java.lang.Integer> |
iterator()
Returns an iterator over all of the data blocks in this DataIndex. |
DBIterator<java.lang.Integer> |
iterator(DataBlockSummaryReader summaryReader,
long startTime,
long endTime)
Returns an iterator over a range of data blocks that contain at least one record within the given time bounds. |
Method Detail |
---|
long getStartTime()
long getEndTime()
int getFirstBlock()
int getSecondBlock() throws java.io.IOException, BadFileException
java.io.IOException
BadFileException
int getLastBlock()
DBIterator<java.lang.Integer> iterator(DataBlockSummaryReader summaryReader, long startTime, long endTime) throws java.io.IOException, BadFileException
summaryReader
- non-null reader to get data block summaries (their time ranges)startTime
- start time, inclusive, or 0 for unbounded startendTime
- end time, inclusive, or Long.MAX_VALUE for unbounded end
java.io.IOException
BadFileException
DBIterator<java.lang.Integer> iterator()
iterator
in interface DBIterable<java.lang.Integer>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |