Class UpdateBy

java.lang.Object
com.illumon.iris.db.v2.updateby.UpdateBy
Direct Known Subclasses:
BucketedUpdateBy

public abstract class UpdateBy extends Object
  • Field Details

    • inputSources

      protected final ColumnSource<?>[] inputSources
    • inputSourceSlots

      protected final int[] inputSourceSlots
    • operators

      protected final UpdateByOperator[] operators
    • source

      protected final QueryTable source
    • redirectionIndex

      @Nullable protected final RedirectionIndex redirectionIndex
    • freeRows

      protected final Index freeRows
    • maxInnerIndex

      protected long maxInnerIndex
    • control

      protected final UpdateByControl control
  • Constructor Details

  • Method Details

    • updateBy

      public static Table updateBy(@NotNull QueryTable source, @NotNull Collection<UpdateByClause> clauses, @NotNull MatchPair[] byColumns, @NotNull UpdateByControl control)
      Apply the specified operations to each group of rows in the source table and produce a result table with the same index as the source with each operator applied.
      Parameters:
      source - the source to apply to.
      clauses - the operations to apply.
      byColumns - the columns to group by before applying operations
      Returns:
      a new table with the same index as the source with all the operations applied.
    • processUpdateForRedirection

      protected void processUpdateForRedirection(@NotNull ShiftAwareListener.Update upstream)