Package com.terracottatech.store
Interface UpdateOperation.IntWriteOperationBuilder
- All Superinterfaces:
UpdateOperation.WriteOperationBuilder<Integer,
IntCellDefinition>
- Enclosing interface:
- UpdateOperation<K extends Comparable<K>>
public static interface UpdateOperation.IntWriteOperationBuilder
extends UpdateOperation.WriteOperationBuilder<Integer,IntCellDefinition>
A builder for a transform that writes a single int cell.
-
Method Summary
Modifier and TypeMethodDescription<K extends Comparable<K>>
UpdateOperation.CellUpdateOperation<K,Integer> intResultOf
(ToIntFunction<? super Record<?>> toIntFunction) Creates a transform that writes a cell with the supplied definition and value derived by applying the function to the existing record.<K extends Comparable<K>>
UpdateOperation.CellUpdateOperation<K,Integer> intValueFrom
(Function<IntCellDefinition, ToIntFunction<? super Record<?>>> function) Creates a transform that writes a cell with the supplied definition and an integer derived via a function of that definition.Methods inherited from interface com.terracottatech.store.UpdateOperation.WriteOperationBuilder
resultOf, value, valueFrom
-
Method Details
-
intResultOf
<K extends Comparable<K>> UpdateOperation.CellUpdateOperation<K,Integer> intResultOf(ToIntFunction<? super Record<?>> toIntFunction) Creates a transform that writes a cell with the supplied definition and value derived by applying the function to the existing record.- Type Parameters:
K
- the type of the key- Parameters:
toIntFunction
- cell value function- Returns:
- a single cell writing transform
-
intValueFrom
<K extends Comparable<K>> UpdateOperation.CellUpdateOperation<K,Integer> intValueFrom(Function<IntCellDefinition, ToIntFunction<? super Record<?>>> function) Creates a transform that writes a cell with the supplied definition and an integer derived via a function of that definition.- Type Parameters:
K
- the type of the key- Parameters:
function
- cell value function generator- Returns:
- a single cell writing transform
- See Also:
-