Class QueryResult

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess

public class QueryResult extends ArrayList<Object>
A query result.
Author:
Abe White
See Also:
  • Constructor Details

    • QueryResult

      public QueryResult(QueryKey key, Collection<Object> data)
      Constructor; supply corresponding query key and result data.
    • QueryResult

      public QueryResult(Collection<Object> data, long ex)
      Constructor to set internal data from a serializer.
  • Method Details

    • getTimeoutTime

      public long getTimeoutTime()
      Expiration time, or -1 for no timeout.
    • isTimedOut

      public boolean isTimedOut()
      Whether this data is timed out.
    • setTimestamp

      public void setTimestamp(long ts)
      Sets the timestamp of the query result.
      Parameters:
      ts - -- Timestamp value in long
    • getTimestamp

      public long getTimestamp()
      Returns the timestamp of the query result.
      Returns:
      -- the timestamp value in long