Class FileSeriesReaderByTimestamp
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.reader.series.FileSeriesReaderByTimestamp
-
public class FileSeriesReaderByTimestamp extends Object
Series reader is used to query one series of one tsfile, using this reader to query the value of a series with given timestamps.
-
-
Field Summary
Fields Modifier and Type Field Description protected IChunkLoaderchunkLoaderprotected List<IChunkMetadata>chunkMetadataList
-
Constructor Summary
Constructors Constructor Description FileSeriesReaderByTimestamp(IChunkLoader chunkLoader, List<IChunkMetadata> chunkMetadataList)init with chunkLoader and chunkMetaDataList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TSDataTypegetDataType()ObjectgetValueInTimestamp(long timestamp)get value with time equals timestamp.booleanhasNext()Judge if the series reader has next time-value pair.
-
-
-
Field Detail
-
chunkLoader
protected IChunkLoader chunkLoader
-
chunkMetadataList
protected List<IChunkMetadata> chunkMetadataList
-
-
Constructor Detail
-
FileSeriesReaderByTimestamp
public FileSeriesReaderByTimestamp(IChunkLoader chunkLoader, List<IChunkMetadata> chunkMetadataList)
init with chunkLoader and chunkMetaDataList.
-
-
Method Detail
-
getDataType
public TSDataType getDataType()
-
getValueInTimestamp
public Object getValueInTimestamp(long timestamp) throws IOException
get value with time equals timestamp. If there is no such point, return null.- Throws:
IOException
-
hasNext
public boolean hasNext() throws IOExceptionJudge if the series reader has next time-value pair.- Returns:
- true if has next, false if not.
- Throws:
IOException
-
-