Package net.hydromatic.morel.eval
Class Codes.SetRowSink
java.lang.Object
net.hydromatic.morel.eval.Codes.BaseRowSink
net.hydromatic.morel.eval.Codes.SetRowSink
- All Implemented Interfaces:
Codes.RowSink,Describable
- Direct Known Subclasses:
Codes.ExceptAllRowSink,Codes.ExceptDistinctRowSink,Codes.IntersectAllRowSink,Codes.IntersectDistinctRowSink,Codes.UnionRowSink
- Enclosing class:
Codes
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final com.google.common.collect.ImmutableList<Code> (package private) final boolean(package private) final com.google.common.collect.ImmutableList<String> (package private) final Op(package private) final Object[]private static final int[]Fields inherited from class net.hydromatic.morel.eval.Codes.BaseRowSink
rowSink -
Constructor Summary
ConstructorsConstructorDescriptionSetRowSink(Op op, boolean distinct, com.google.common.collect.ImmutableList<Code> codes, com.google.common.collect.ImmutableList<String> names, Codes.RowSink rowSink) -
Method Summary
Modifier and TypeMethodDescription(package private) booleanAdds the current element to the collection, and returns whether it was added.(package private) voidcompute(EvalEnv env, BiFunction<Object, int[], int[]> fn) Does something to the count of the current element in the collection.(package private) voidcomputeIfAbsent(EvalEnv env, Function<Object, int[]> fn) Does something to the count of the current element in the collection.(package private) voidcomputeIfPresent(EvalEnv env, BiFunction<Object, int[], int[]> fn) Does something to the count of the current element in the collection.(package private) voidDecrements the count of the current element in the collection, if it is present.(package private) voidIncrements the count of the current element in the collection.(package private) voidRemoves the current element from the collection.Methods inherited from class net.hydromatic.morel.eval.Codes.BaseRowSink
accept, result, start
-
Field Details
-
ZERO
private static final int[] ZERO -
op
-
distinct
final boolean distinct -
codes
-
names
-
map
-
values
-
-
Constructor Details
-
SetRowSink
SetRowSink(Op op, boolean distinct, com.google.common.collect.ImmutableList<Code> codes, com.google.common.collect.ImmutableList<String> names, Codes.RowSink rowSink)
-
-
Method Details
-
describe
-
add
Adds the current element to the collection, and returns whether it was added. -
remove
Removes the current element from the collection. -
inc
Increments the count of the current element in the collection. -
dec
Decrements the count of the current element in the collection, if it is present. -
compute
Does something to the count of the current element in the collection. -
computeIfPresent
Does something to the count of the current element in the collection. -
computeIfAbsent
Does something to the count of the current element in the collection.
-