public class Query extends Object implements IdentifiedDataSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Query.QueryBuilder |
| Constructor and Description |
|---|
Query() |
Query(String mapName,
Predicate predicate,
IterationType iterationType,
Aggregator aggregator,
Projection projection) |
| Modifier and Type | Method and Description |
|---|---|
Result |
createResult(SerializationService serializationService,
long limit) |
Aggregator |
getAggregator() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
IterationType |
getIterationType() |
String |
getMapName() |
Predicate |
getPredicate() |
Projection |
getProjection() |
Class<? extends Result> |
getResultType() |
boolean |
isAggregationQuery() |
boolean |
isProjectionQuery() |
static Query.QueryBuilder |
of() |
static Query.QueryBuilder |
of(Query query) |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public Query()
public Query(String mapName, Predicate predicate, IterationType iterationType, Aggregator aggregator, Projection projection)
public String getMapName()
public Predicate getPredicate()
public IterationType getIterationType()
public Aggregator getAggregator()
public boolean isAggregationQuery()
public Projection getProjection()
public boolean isProjectionQuery()
public Result createResult(SerializationService serializationService, long limit)
public static Query.QueryBuilder of()
public static Query.QueryBuilder of(Query query)
public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.