Package net.hydromatic.morel.eval
Class Codes.YieldRowSink
java.lang.Object
net.hydromatic.morel.eval.Codes.BaseRowSink
net.hydromatic.morel.eval.Codes.YieldRowSink
- All Implemented Interfaces:
Codes.RowSink,Describable
- Enclosing class:
Codes
Implementation of
Codes.RowSink for a yield step.
If this is the last step, use instead a Codes.CollectRowSink. It
is more efficient; there is no downstream row sink; and a terminal yield
step is allowed to generate expressions that are not records. Non-record
expressions (e.g. int expressions) do not have a name, and
therefore the value cannot be passed via the EvalEnv.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList<Code> private final com.google.common.collect.ImmutableList<String> private final Object[]Fields inherited from class net.hydromatic.morel.eval.Codes.BaseRowSink
rowSink -
Constructor Summary
ConstructorsConstructorDescriptionYieldRowSink(com.google.common.collect.ImmutableList<String> names, com.google.common.collect.ImmutableList<Code> codes, Codes.RowSink rowSink) -
Method Summary
Methods inherited from class net.hydromatic.morel.eval.Codes.BaseRowSink
result, start
-
Field Details
-
names
-
codes
-
values
-
-
Constructor Details
-
YieldRowSink
YieldRowSink(com.google.common.collect.ImmutableList<String> names, com.google.common.collect.ImmutableList<Code> codes, Codes.RowSink rowSink)
-
-
Method Details
-
describe
-
accept
- Specified by:
acceptin interfaceCodes.RowSink- Overrides:
acceptin classCodes.BaseRowSink
-