// Path: src/main/java/org/rakam/cache/hazelcast/hyperloglog/operations/CardinalityOperation.java
// public class CardinalityOperation extends HyperLogLogBaseOperation {
// 
//     private long returnValue;
// 
//     public CardinalityOperation() {
//     }
// 
//     public CardinalityOperation(String name) {
//         super(name);
//     }
// 
//     @Override
//     public void run() throws Exception {
//         HLLWrapper number = getHLL();
//         this.returnValue = number.cardinality();
//     }
// 
//     @Override
//     public Object getResponse() {
//         return returnValue;
//     }
// 
//     @Override
//     public int getId() {
//         return HyperLogLogSerializerFactory.CARDINALITY;
//     }
// 
//     @Override
//     protected void writeInternal(ObjectDataOutput out) throws IOException {
//         super.writeInternal(out);
//     }
// 
//     @Override
//     protected void readInternal(ObjectDataInput in) throws IOException {
//         super.readInternal(in);
//     }
// }


import com.hazelcast.spi.Operation;
import org.rakam.cache.hazelcast.hyperloglog.operations.CardinalityOperation;
/**
 * Created by buremba <Burak Emre Kabakcı> on 10/07/14.
 */

package org.rakam.cache.hazelcast.hyperloglog.client;


public class CardinalityRequest extends ReadRequest {
    public CardinalityRequest(String name) {
        super(name);
    }

    public CardinalityRequest() {

    }

    @Override
    protected Operation prepareOperation() {
// Path: src/main/java/org/rakam/cache/hazelcast/hyperloglog/operations/CardinalityOperation.java
// public class CardinalityOperation extends HyperLogLogBaseOperation {
// 
//     private long returnValue;
// 
//     public CardinalityOperation() {
//     }
// 
//     public CardinalityOperation(String name) {
//         super(name);
//     }
// 
//     @Override
//     public void run() throws Exception {
//         HLLWrapper number = getHLL();
//         this.returnValue = number.cardinality();
//     }
// 
//     @Override
//     public Object getResponse() {
//         return returnValue;
//     }
// 
//     @Override
//     public int getId() {
//         return HyperLogLogSerializerFactory.CARDINALITY;
//     }
// 
//     @Override
//     protected void writeInternal(ObjectDataOutput out) throws IOException {
//         super.writeInternal(out);
//     }
// 
//     @Override
//     protected void readInternal(ObjectDataInput in) throws IOException {
//         super.readInternal(in);
//     }
// }


// Path: src/main/java/org/rakam/cache/hazelcast/hyperloglog/client/CardinalityRequest.java
import com.hazelcast.spi.Operation;
import org.rakam.cache.hazelcast.hyperloglog.operations.CardinalityOperation;

/**
 * Created by buremba <Burak Emre Kabakcı> on 10/07/14.
 */

package org.rakam.cache.hazelcast.hyperloglog.client;


public class CardinalityRequest extends ReadRequest {
    public CardinalityRequest(String name) {
        super(name);
    }

    public CardinalityRequest() {

    }

    @Override
    protected Operation prepareOperation() {
        return new CardinalityOperation(name);