Search in sources :

Example 1 with AggregateOperation

use of com.hazelcast.cardinality.impl.operations.AggregateOperation in project hazelcast by hazelcast.

the class CardinalityEstimatorProxy method addAsync.

@Override
public InternalCompletableFuture<Void> addAsync(Object obj) {
    checkNotNull(obj, "Object is null.");
    Data data = getNodeEngine().getSerializationService().toData(obj);
    Operation operation = new AggregateOperation(name, data.hash64()).setPartitionId(partitionId);
    return invokeOnPartition(operation);
}
Also used : Data(com.hazelcast.nio.serialization.Data) Operation(com.hazelcast.spi.Operation) AggregateOperation(com.hazelcast.cardinality.impl.operations.AggregateOperation) EstimateOperation(com.hazelcast.cardinality.impl.operations.EstimateOperation) AggregateOperation(com.hazelcast.cardinality.impl.operations.AggregateOperation)

Aggregations

AggregateOperation (com.hazelcast.cardinality.impl.operations.AggregateOperation)1 EstimateOperation (com.hazelcast.cardinality.impl.operations.EstimateOperation)1 Data (com.hazelcast.nio.serialization.Data)1 Operation (com.hazelcast.spi.Operation)1