Package com.terracottatech.store
Interface UpdateOperation.BoolWriteOperationBuilder
- All Superinterfaces:
UpdateOperation.WriteOperationBuilder<Boolean,
BoolCellDefinition>
- Enclosing interface:
- UpdateOperation<K extends Comparable<K>>
public static interface UpdateOperation.BoolWriteOperationBuilder
extends UpdateOperation.WriteOperationBuilder<Boolean,BoolCellDefinition>
A builder for a transform that writes a single boolean cell.
-
Method Summary
Modifier and TypeMethodDescription<K extends Comparable<K>>
UpdateOperation.CellUpdateOperation<K,Boolean> boolResultOf
(Predicate<? super Record<?>> predicate) Creates a transform that writes a cell with the supplied definition and value derived by applying the predicate to the existing record.<K extends Comparable<K>>
UpdateOperation.CellUpdateOperation<K,Boolean> boolValueFrom
(Function<BoolCellDefinition, Predicate<? super Record<?>>> function) Creates a transform that writes a cell with the supplied definition and a boolean derived via a function of that definition.Methods inherited from interface com.terracottatech.store.UpdateOperation.WriteOperationBuilder
resultOf, value, valueFrom
-
Method Details
-
boolResultOf
<K extends Comparable<K>> UpdateOperation.CellUpdateOperation<K,Boolean> boolResultOf(Predicate<? super Record<?>> predicate) Creates a transform that writes a cell with the supplied definition and value derived by applying the predicate to the existing record.- Type Parameters:
K
- the type of the key- Parameters:
predicate
- cell value predicate- Returns:
- a single cell writing transform
-
boolValueFrom
<K extends Comparable<K>> UpdateOperation.CellUpdateOperation<K,Boolean> boolValueFrom(Function<BoolCellDefinition, Predicate<? super Record<?>>> function) Creates a transform that writes a cell with the supplied definition and a boolean 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:
-