public class ViewUpdateGenerator
extends java.lang.Object
addBaseTableUpdate(org.apache.cassandra.db.rows.Row, org.apache.cassandra.db.rows.Row) and calling generateViewUpdates() once all updates have
 been handled to get the resulting view mutations.| Constructor and Description | 
|---|
| ViewUpdateGenerator(View view,
                   DecoratedKey basePartitionKey,
                   int nowInSec)Creates a new  ViewUpdateBuilder. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addBaseTableUpdate(Row existingBaseRow,
                  Row mergedBaseRow)Adds to this generator the updates to be made to the view given a base table row
 before and after an update. | 
| void | clear()Clears the current state so that the generator may be reused. | 
| java.util.Collection<PartitionUpdate> | generateViewUpdates()Returns the updates that needs to be done to the view given the base table updates
 passed to  addBaseTableUpdate(org.apache.cassandra.db.rows.Row, org.apache.cassandra.db.rows.Row). | 
public ViewUpdateGenerator(View view, DecoratedKey basePartitionKey, int nowInSec)
ViewUpdateBuilder.view - the view for which this will be building updates for.basePartitionKey - the partition key for the base table partition for which
 we'll handle updates for.nowInSec - the current time in seconds. Used to decide if data are live or not
 and as base reference for new deletions.public void addBaseTableUpdate(Row existingBaseRow, Row mergedBaseRow)
existingBaseRow - the base table row as it is before an update.mergedBaseRow - the base table row after the update is applied (note that
 this is not just the new update, but rather the resulting row).public java.util.Collection<PartitionUpdate> generateViewUpdates()
addBaseTableUpdate(org.apache.cassandra.db.rows.Row, org.apache.cassandra.db.rows.Row).public void clear()
Copyright © 2018 The Apache Software Foundation