Interface UpdateOperation.CellUpdateOperation<K extends Comparable<K>,T>

Type Parameters:
K - consumed record key type
T - cell type
All Superinterfaces:
UpdateOperation<K>
Enclosing interface:
UpdateOperation<K extends Comparable<K>>

public static interface UpdateOperation.CellUpdateOperation<K extends Comparable<K>,T> extends UpdateOperation<K>
A single cell transform.
  • Method Details

    • definition

      CellDefinition<T> definition()
      Returns the cell definition modified by this transform.
      Returns:
      the modified definition
    • cell

      Function<? super Record<?>,Optional<Cell<T>>> cell()
      Returns the cell to be written or an empty optional to remove.
      Returns:
      the cell to be written
    • apply

      default Iterable<Cell<?>> apply(Record<K> r)
      Description copied from interface: UpdateOperation
      Applies this transform to the given record.
      Specified by:
      apply in interface UpdateOperation<K extends Comparable<K>>
      Parameters:
      r - the incoming record
      Returns:
      the resultant cells