org.scale7.cassandra.pelops
Class RowDeletor
java.lang.Object
org.scale7.cassandra.pelops.Operand
org.scale7.cassandra.pelops.RowDeletor
public class RowDeletor
- extends Operand
Facilitates the removal of data at a key-level.
- Author:
- dominicwilliams
Fields inherited from class org.scale7.cassandra.pelops.Operand |
thrift |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowDeletor
public RowDeletor(IThriftPool thrift)
RowDeletor
public RowDeletor(IThriftPool thrift,
long timestamp)
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 rowrowKey
- The key of the rowcLevel
- 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 rowrowKey
- The key of the rowcLevel
- The Cassandra consistency level to be used
- Throws:
PelopsException
Copyright © 2011. All Rights Reserved.