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

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

public class ColumnFamilyRowCopy<K,N>
extends Object

Copys all the columns in the source row to the destination row.

Author:
thrykol

Constructor Summary
ColumnFamilyRowCopy(Keyspace keyspace, Serializer<K> keySerializer)
           
 
Method Summary
 void copy()
          Copy the source row to the destination row.
 ColumnFamilyRowCopy setColumnFamily(String cf)
          Column family the row is part of.
 ColumnFamilyRowCopy setDestinationKey(K destinationKey)
          Key of the destination row
 ColumnFamilyRowCopy setMutateInterval(int interval)
          Set the mutate interval.
 ColumnFamilyRowCopy 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

ColumnFamilyRowCopy

public ColumnFamilyRowCopy(Keyspace keyspace,
                           Serializer<K> keySerializer)
Method Detail

setColumnFamily

public ColumnFamilyRowCopy setColumnFamily(String cf)
Column family the row is part of.

Parameters:
cf - Column family name
Returns:
this

setRowKey

public ColumnFamilyRowCopy setRowKey(K rowKey)
Key of the source row.

Parameters:
rowKey - Row key
Returns:
this

setDestinationKey

public ColumnFamilyRowCopy setDestinationKey(K destinationKey)
Key of the destination row

Parameters:
destinationKey - Destination row key
Returns:
this

setMutateInterval

public ColumnFamilyRowCopy setMutateInterval(int interval)
Set the mutate interval.

Parameters:
interval - Mutation interval
Returns:
this

copy

public void copy()
          throws HectorException
Copy the source row to the destination row.

Throws:
HectorException - if any required fields are not set


Copyright © 2013. All Rights Reserved.