Class ViewUpdateGenerator

    • Constructor Detail

      • ViewUpdateGenerator

        public ViewUpdateGenerator​(View view,
                                   DecoratedKey basePartitionKey,
                                   long nowInSec)
        Creates a new ViewUpdateBuilder.
        Parameters:
        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.
    • Method Detail

      • addBaseTableUpdate

        public 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.
        Parameters:
        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).
      • clear

        public void clear()
        Clears the current state so that the generator may be reused.