Class FileSeriesReaderByTimestamp
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.reader.series.FileSeriesReaderByTimestamp
-
public class FileSeriesReaderByTimestamp extends java.lang.ObjectSeries 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 java.util.List<IChunkMetadata>chunkMetadataList
-
Constructor Summary
Constructors Constructor Description FileSeriesReaderByTimestamp(IChunkLoader chunkLoader, java.util.List<IChunkMetadata> chunkMetadataList)init with chunkLoader and chunkMetaDataList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TSDataTypegetDataType()java.lang.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 java.util.List<IChunkMetadata> chunkMetadataList
-
-
Constructor Detail
-
FileSeriesReaderByTimestamp
public FileSeriesReaderByTimestamp(IChunkLoader chunkLoader, java.util.List<IChunkMetadata> chunkMetadataList)
init with chunkLoader and chunkMetaDataList.
-
-
Method Detail
-
getDataType
public TSDataType getDataType()
-
getValueInTimestamp
public java.lang.Object getValueInTimestamp(long timestamp) throws java.io.IOExceptionget value with time equals timestamp. If there is no such point, return null.- Throws:
java.io.IOException
-
hasNext
public boolean hasNext() throws java.io.IOExceptionJudge if the series reader has next time-value pair.- Returns:
- true if has next, false if not.
- Throws:
java.io.IOException
-
-