All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hmsonline.cassandra.triggers.ColumnOperation Maven / Gradle / Ivy

Go to download

Cassandra Triggers is a lightweight mechanism to implement trigger-like functionality for Cassandra.

There is a newer version: 1.0.1
Show newest version
package com.hmsonline.cassandra.triggers;

import java.nio.ByteBuffer;
import java.nio.charset.CharacterCodingException;

import org.apache.cassandra.utils.ByteBufferUtil;

public class ColumnOperation {
    private ByteBuffer name;
    private boolean isDelete;
        
    public ByteBuffer getName() {
        return name;
    }
    
    public void setName(ByteBuffer name) {
        this.name = name;
    }
    
    public boolean isDelete() {
        return isDelete;
    }
    
    public void setDelete(boolean isDelete) {
        this.isDelete = isDelete;
    }
    
    public void setOperationType(ByteBuffer value) throws CharacterCodingException{
        OperationType operation = OperationType.valueOf(ByteBufferUtil.string(value));
        this.setDelete(operation.equals(OperationType.DELETE));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy