Class FlattenOperation

java.lang.Object
io.deephaven.engine.table.impl.FlattenOperation
All Implemented Interfaces:
QueryTable.MemoizableOperation<QueryTable>, QueryTable.Operation<QueryTable>

public class FlattenOperation extends Object implements QueryTable.MemoizableOperation<QueryTable>
  • Method Details

    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface QueryTable.Operation<QueryTable>
      Returns:
      the description of this operation
    • getLogPrefix

      public String getLogPrefix()
      Specified by:
      getLogPrefix in interface QueryTable.Operation<QueryTable>
      Returns:
      the log prefix of this operation
    • getMemoizedOperationKey

      public MemoizedOperationKey getMemoizedOperationKey()
      Specified by:
      getMemoizedOperationKey in interface QueryTable.MemoizableOperation<QueryTable>
      Returns:
      the key that should be used to memoize off of
    • initialize

      public QueryTable.Operation.Result<QueryTable> initialize(boolean usePrev, long beforeClock)
      Description copied from interface: QueryTable.Operation
      Initialize this operation.
      Specified by:
      initialize in interface QueryTable.Operation<QueryTable>
      Parameters:
      usePrev - data from the previous cycle should be used (otherwise use this cycle)
      beforeClock - the clock value that we captured before the function began; the function can use this value to bail out early if it notices something has gone wrong.
      Returns:
      the result table / listener if successful, null if it should be retried.
    • computeFlattenedRowSetShiftData

      public static RowSetShiftData computeFlattenedRowSetShiftData(@NotNull @NotNull RowSet removed, @NotNull @NotNull RowSet added, long prevSize)
      Compute the shift data for a flattened row set given which rows were removed and which were added.
      Parameters:
      removed - the rows that were removed in the flattened pre-update key-space
      added - the rows that were added in the flattened post-update key-space
      prevSize - the size of the table before the update
      Returns:
      the shift data