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()
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.