Constructor and Description |
---|
ResultsImpl(List<? extends Result> results,
boolean hasKeys,
boolean hasValues,
boolean hasAttributes,
boolean hasAggregators)
Constructor
|
ResultsImpl(List<? extends Result> results,
boolean hasKeys,
boolean hasValues,
boolean hasAttributes,
boolean hasAggregators,
Runnable discardCallback)
Constructor
|
Modifier and Type | Method and Description |
---|---|
List<Result> |
all()
List containing all of the search results.
|
void |
discard()
Discard this query result.
|
boolean |
hasAggregators()
Whether the results contains aggregates
|
boolean |
hasAttributes()
Whether the Results have cache attributes included.
|
boolean |
hasKeys()
Whether the Results have cache keys included.
|
boolean |
hasValues()
Whether the Results have cache values included.
|
List<Result> |
range(int start,
int length)
Retrieve a subset of the cache results.
|
int |
size()
Results size
|
String |
toString() |
public ResultsImpl(List<? extends Result> results, boolean hasKeys, boolean hasValues, boolean hasAttributes, boolean hasAggregators)
results
- hasKeys
- hasAttributes
- hasAggregators
- public void discard()
SearchException
public List<Result> all() throws SearchException
all
in interface Results
SearchException
public List<Result> range(int start, int length) throws SearchException
range
in interface Results
start
- starting index to accesslength
- the number of results to returnSearchException
public int size()
public boolean hasKeys()
public boolean hasValues()
public boolean hasAttributes()
hasAttributes
in interface Results
public boolean hasAggregators()
hasAggregators
in interface Results
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.