public class QueryResult extends Object implements IdentifiedDataSerializable, Iterable<QueryResultRow>
QueryResultRow
instances.Constructor and Description |
---|
QueryResult() |
QueryResult(IterationType iterationType,
long resultLimit) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(Collection<QueryableEntry> entries) |
void |
addAllRows(Collection<QueryResultRow> r) |
void |
addRow(QueryResultRow row) |
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 |
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
|
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 addAllRows(Collection<QueryResultRow> r)
public void addRow(QueryResultRow row)
public void addAll(Collection<QueryableEntry> entries)
public Collection<Integer> getPartitionIds()
public void setPartitionIds(Collection<Integer> partitionIds)
public Collection<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 © 2016 Hazelcast, Inc.. All Rights Reserved.