public class QueryResult extends Object implements Result<QueryResult>, IdentifiedDataSerializable, Iterable<QueryResultRow>
A QueryResults is a collections of QueryResultRow instances.
| Constructor and Description |
|---|
QueryResult() |
QueryResult(IterationType iterationType,
long resultLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(QueryableEntry entry,
Projection projection,
SerializationService serializationService) |
void |
addRow(QueryResultRow row) |
void |
combine(QueryResult result) |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
Collection<Integer> |
getPartitionIds() |
Collection<QueryResultRow> |
getRows() |
boolean |
isEmpty() |
Iterator<QueryResultRow> |
iterator() |
void |
onCombineFinished() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setPartitionIds(Collection<Integer> partitionIds) |
int |
size() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic QueryResult()
public QueryResult(IterationType iterationType, long resultLimit)
public Iterator<QueryResultRow> iterator()
iterator in interface Iterable<QueryResultRow>public int size()
public boolean isEmpty()
public void addRow(QueryResultRow row)
public void add(QueryableEntry entry, Projection projection, SerializationService serializationService)
public Collection<Integer> getPartitionIds()
getPartitionIds in interface Result<QueryResult>public void combine(QueryResult result)
combine in interface Result<QueryResult>public void onCombineFinished()
onCombineFinished in interface Result<QueryResult>public void setPartitionIds(Collection<Integer> partitionIds)
setPartitionIds in interface Result<QueryResult>public Collection<QueryResultRow> getRows()
public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.