// Path: src/main/java/org/rakam/cache/hazelcast/hyperloglog/operations/AddOperation.java
// public class AddOperation extends HyperLogLogBackupAwareOperation {
// 
//     private String item;
// 
//     public AddOperation() {
//     }
// 
//     public AddOperation(String name, String item) {
//         super(name);
//         this.item = item;
//     }
// 
//     @Override
//     public void run() throws IllegalArgumentException {
//         HLLWrapper hll = getHLL();
//         hll.add(item);
//     }
// 
//     @Override
//     public int getId() {
//         return HyperLogLogSerializerFactory.ADD;
//     }
// 
//     @Override
//     protected void writeInternal(ObjectDataOutput out) throws IOException {
//         super.writeInternal(out);
//         out.writeUTF(item);
//     }
// 
//     @Override
//     protected void readInternal(ObjectDataInput in) throws IOException {
//         super.readInternal(in);
//         item = in.readUTF();
//     }
// 
//     @Override
//     public Operation getBackupOperation() {
//         return new AddBackupOperation(name, item);
//     }
// }


import com.hazelcast.nio.serialization.PortableReader;
import com.hazelcast.nio.serialization.PortableWriter;
import com.hazelcast.spi.Operation;
import org.rakam.cache.hazelcast.hyperloglog.operations.AddOperation;
import java.io.IOException;
/**
 * Created by buremba <Burak Emre Kabakcı> on 10/07/14.
 */
package org.rakam.cache.hazelcast.hyperloglog.client;



public class AddRequest extends WriteRequest {

    private String value;

    public AddRequest() {
    }

    protected AddRequest(String name, String value) {
        this.name = name;
        this.value = value;
    }

    @Override
    protected Operation prepareOperation() {
// Path: src/main/java/org/rakam/cache/hazelcast/hyperloglog/operations/AddOperation.java
// public class AddOperation extends HyperLogLogBackupAwareOperation {
// 
//     private String item;
// 
//     public AddOperation() {
//     }
// 
//     public AddOperation(String name, String item) {
//         super(name);
//         this.item = item;
//     }
// 
//     @Override
//     public void run() throws IllegalArgumentException {
//         HLLWrapper hll = getHLL();
//         hll.add(item);
//     }
// 
//     @Override
//     public int getId() {
//         return HyperLogLogSerializerFactory.ADD;
//     }
// 
//     @Override
//     protected void writeInternal(ObjectDataOutput out) throws IOException {
//         super.writeInternal(out);
//         out.writeUTF(item);
//     }
// 
//     @Override
//     protected void readInternal(ObjectDataInput in) throws IOException {
//         super.readInternal(in);
//         item = in.readUTF();
//     }
// 
//     @Override
//     public Operation getBackupOperation() {
//         return new AddBackupOperation(name, item);
//     }
// }


// Path: src/main/java/org/rakam/cache/hazelcast/hyperloglog/client/AddRequest.java
import com.hazelcast.nio.serialization.PortableReader;
import com.hazelcast.nio.serialization.PortableWriter;
import com.hazelcast.spi.Operation;
import org.rakam.cache.hazelcast.hyperloglog.operations.AddOperation;
import java.io.IOException;

/**
 * Created by buremba <Burak Emre Kabakcı> on 10/07/14.
 */
package org.rakam.cache.hazelcast.hyperloglog.client;



public class AddRequest extends WriteRequest {

    private String value;

    public AddRequest() {
    }

    protected AddRequest(String name, String value) {
        this.name = name;
        this.value = value;
    }

    @Override
    protected Operation prepareOperation() {
        return new AddOperation(name, value);