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() |
List<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, wait
forEach, spliterator
public 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 List<QueryResultRow> getRows()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.