me.prettyprint.cassandra.service
Class ClearCounterRow<K,N>

java.lang.Object
  extended by me.prettyprint.cassandra.service.ClearCounterRow<K,N>

public class ClearCounterRow<K,N>
extends Object

Resets each counter counter column in the row to zero. This class is subject to the limitations of counter columns. See the Cassandra Wiki for more information on the limitations.

Author:
thrykol

Constructor Summary
ClearCounterRow(Keyspace keyspace, Serializer<K> keySerializer, Serializer<N> nameSerializer)
           
 
Method Summary
 void clear()
          Clear the counter columns.
 ClearCounterRow<K,N> setColumnFamily(String cf)
          Column family the row is part of.
 ClearCounterRow<K,N> setCount(int count)
          Set the number of columns to retrieve per slice.
 ClearCounterRow<K,N> setMutateInterval(int interval)
          Set the mutate interval.
 ClearCounterRow<K,N> setRowKey(K rowKey)
          Key of the source row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearCounterRow

public ClearCounterRow(Keyspace keyspace,
                       Serializer<K> keySerializer,
                       Serializer<N> nameSerializer)
Method Detail

setColumnFamily

public ClearCounterRow<K,N> setColumnFamily(String cf)
Column family the row is part of.

Parameters:
cf - Column family name
Returns:
this

setRowKey

public ClearCounterRow<K,N> setRowKey(K rowKey)
Key of the source row.

Parameters:
rowKey - Row key
Returns:
this

setMutateInterval

public ClearCounterRow<K,N> setMutateInterval(int interval)
Set the mutate interval.

Parameters:
interval - Mutation interval
Returns:
this

setCount

public ClearCounterRow<K,N> setCount(int count)
Set the number of columns to retrieve per slice.

Parameters:
count - The number of columns to retrieve per slice
Returns:
<this>

clear

public void clear()
Clear the counter columns.



Copyright © 2013. All Rights Reserved.