org.scale7.cassandra.pelops
Class RowDeletor

java.lang.Object
  extended by org.scale7.cassandra.pelops.Operand
      extended by org.scale7.cassandra.pelops.RowDeletor

public class RowDeletor
extends Operand

Facilitates the removal of data at a key-level.

Author:
dominicwilliams

Nested Class Summary
 
Nested classes/interfaces inherited from class org.scale7.cassandra.pelops.Operand
Operand.IOperation<ReturnType>
 
Field Summary
 
Fields inherited from class org.scale7.cassandra.pelops.Operand
thrift
 
Constructor Summary
RowDeletor(IThriftPool thrift)
           
RowDeletor(IThriftPool thrift, long timestamp)
           
 
Method Summary
 void deleteRow(String columnFamily, Bytes rowKey, org.apache.cassandra.thrift.ConsistencyLevel cLevel)
          Delete a row with a specified key from a specified column family.
 void deleteRow(String columnFamily, String rowKey, org.apache.cassandra.thrift.ConsistencyLevel cLevel)
          Delete a row with a specified key from a specified column family.
 
Methods inherited from class org.scale7.cassandra.pelops.Operand
tryOperation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowDeletor

public RowDeletor(IThriftPool thrift)

RowDeletor

public RowDeletor(IThriftPool thrift,
                  long timestamp)
Method Detail

deleteRow

public void deleteRow(String columnFamily,
                      String rowKey,
                      org.apache.cassandra.thrift.ConsistencyLevel cLevel)
               throws PelopsException
Delete a row with a specified key from a specified column family. The function succeeds even if the row does not exist.

Parameters:
columnFamily - The column family from which to delete the row
rowKey - The key of the row
cLevel - The Cassandra consistency level to be used
Throws:
PelopsException

deleteRow

public void deleteRow(String columnFamily,
                      Bytes rowKey,
                      org.apache.cassandra.thrift.ConsistencyLevel cLevel)
               throws PelopsException
Delete a row with a specified key from a specified column family. The function succeeds even if the row does not exist.

Parameters:
columnFamily - The column family from which to delete the row
rowKey - The key of the row
cLevel - The Cassandra consistency level to be used
Throws:
PelopsException


Copyright © 2011. All Rights Reserved.