class SeriesReaderByTimestamp implements IReaderByTimestamp {

  @Override
  public Object getValueInTimestamp(long timestamp) throws IOException {
    seriesReader.setTimeFilter(timestamp);
    if ((batchData == null || (batchData.getTimeByIndex(batchData.length() - 1) < timestamp))
        && !hasNext(timestamp)) {
      return null;
    }

    return batchData.getValueInTimestamp(timestamp);
  }

  public  SeriesReaderByTimestamp();
  public  SeriesReaderByTimestamp(PartialPath seriesPath, Set<String> allSensors,
      TSDataType dataType, QueryContext context, QueryDataSource dataSource,
      TsFileFilter fileFilter);

}