Modifier and Type | Field and Description |
---|---|
private boolean |
empty |
private boolean |
hasAggregators |
private boolean |
hasAttributes |
private boolean |
hasKeys |
private boolean |
hasValues |
private java.util.List<Result> |
results |
Constructor and Description |
---|
ResultsImpl(java.util.List<Result> results,
boolean hasKeys,
boolean hasValues,
boolean hasAttributes,
boolean hasAggregators)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Result> |
all()
Retrieve all of the cache results in one shot.
|
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.
|
java.util.List<Result> |
range(int start,
int length)
Retrieve a subset of the cache results.
|
int |
size()
Results size
|
java.lang.String |
toString() |
private final java.util.List<Result> results
private final boolean hasKeys
private final boolean hasAttributes
private final boolean hasAggregators
private final boolean hasValues
private final boolean empty
public ResultsImpl(java.util.List<Result> results, boolean hasKeys, boolean hasValues, boolean hasAttributes, boolean hasAggregators)
results
- hasKeys
- hasAttributes
- hasAggregators
- public java.lang.String toString()
toString
in class java.lang.Object
public void discard()
SearchException
public java.util.List<Result> all() throws SearchException
all
in interface Results
SearchException
public java.util.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