java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.records.QueryResult<T>

public class QueryResult<T extends BaseRecord> extends Object
Encapsulates a state store query result that includes a set of records and a time stamp for the result.
  • Constructor Details

    • QueryResult

      public QueryResult(List<T> recs, long time)
  • Method Details

    • getRecords

      public List<T> getRecords()
      Get the result of the query.
      Returns:
      List of records.
    • getTimestamp

      public long getTimestamp()
      The timetamp in driver time of this query.
      Returns:
      Timestamp in driver time.