org.apache.cassandra.db.clock
Class TimestampReconciler

java.lang.Object
  extended by org.apache.cassandra.db.clock.AbstractReconciler
      extended by org.apache.cassandra.db.clock.TimestampReconciler

public final class TimestampReconciler
extends AbstractReconciler

Keeps the column with the highest timestamp. If both are equal return the left column.


Field Summary
static TimestampReconciler instance
           
 
Method Summary
 Column reconcile(Column left, Column right)
           
 
Methods inherited from class org.apache.cassandra.db.clock.AbstractReconciler
equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final TimestampReconciler instance
Method Detail

reconcile

public Column reconcile(Column left,
                        Column right)
Specified by:
reconcile in class AbstractReconciler
Returns:
Reconcile the two columns into one depending on the clock types. For example a strategy could be to keep the one with the highest timestamp.


Copyright © 2010 The Apache Software Foundation