public class InputFactory
extends java.lang.Object
Input
s from symbols.
Some inputs will be linked to some kind of expression.
E.g. InputColumns will have a corresponding CollectExpression<Row, ?>
.
The state on these CollectExpression needs to be set in order for Input.value()
to return the correct value.
Inputs from symbols like Functions or Literals are "standalone" and won't have a linked expression.
Note:
Symbols may either contain References OR InputColumn. Not both.
The appropriate method ctxForRefs(ReferenceResolver)
or ctxForInputColumns()
must be used.
This is due to the fact that References will result in a different kind of Expression class than InputColumns do.
The expression class for references depends on the used ReferenceResolver.
Modifier and Type | Class and Description |
---|---|
static class |
InputFactory.Context<T extends Input<?>> |
Constructor and Description |
---|
InputFactory(Functions functions) |
Modifier and Type | Method and Description |
---|---|
InputFactory.Context<CollectExpression<Row,?>> |
ctxForAggregations() |
InputFactory.Context<CollectExpression<Row,?>> |
ctxForInputColumns() |
InputFactory.Context<CollectExpression<Row,?>> |
ctxForInputColumns(java.lang.Iterable<? extends Symbol> symbols) |
<T extends Input<?>> |
ctxForRefs(ReferenceResolver<T> referenceResolver) |
public InputFactory(Functions functions)
public <T extends Input<?>> InputFactory.Context<T> ctxForRefs(ReferenceResolver<T> referenceResolver)
public InputFactory.Context<CollectExpression<Row,?>> ctxForInputColumns()
public InputFactory.Context<CollectExpression<Row,?>> ctxForInputColumns(java.lang.Iterable<? extends Symbol> symbols)
public InputFactory.Context<CollectExpression<Row,?>> ctxForAggregations()