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 |
|---|---|
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 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 - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.