Package io.substrait.dsl
Class SubstraitBuilder
java.lang.Object
io.substrait.dsl.SubstraitBuilder
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(Expression left, Expression right) aggregate(Function<Rel, Aggregate.Grouping> groupingFn, Function<Rel, List<Aggregate.Measure>> measuresFn, Rel input) aggregate(Function<Rel, Aggregate.Grouping> groupingFn, Function<Rel, List<Aggregate.Measure>> measuresFn, Rel.Remap remap, Rel input) aggregateFn(String namespace, String key, Type outputType, Expression... args) and(Expression... args) avg(Expression expr) bool(boolean v) cast(Expression input, Type type) divide(Expression left, Expression right) equal(Expression left, Expression right) fieldReference(Rel input, int index) fieldReference(List<Rel> inputs, int index) fieldReferences(Rel input, int... indexes) fieldReferences(List<Rel> inputs, int... indexes) filter(Function<Rel, Expression> conditionFn, Rel input) fp64(double v) grouping(Expression... expressions) hashJoin(List<Integer> leftKeys, List<Integer> rightKeys, HashJoin.JoinType joinType, Rel left, Rel right) hashJoin(List<Integer> leftKeys, List<Integer> rightKeys, HashJoin.JoinType joinType, Optional<Rel.Remap> remap, Rel left, Rel right) i32(int v) ifClause(Expression condition, Expression then) ifThen(Iterable<? extends Expression.IfClause> ifClauses, Expression elseClause) innerJoin(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, Rel.Remap remap, Rel left, Rel right) innerJoin(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, Rel left, Rel right) inPredicate(Rel haystack, Expression... needles) join(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, Join.JoinType joinType, Rel.Remap remap, Rel left, Rel right) join(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, Join.JoinType joinType, Rel left, Rel right) max(Expression expr) measure(AggregateFunctionInvocation aggFn, Expression preMeasureFilter) mergeJoin(List<Integer> leftKeys, List<Integer> rightKeys, MergeJoin.JoinType joinType, Rel left, Rel right) mergeJoin(List<Integer> leftKeys, List<Integer> rightKeys, MergeJoin.JoinType joinType, Optional<Rel.Remap> remap, Rel left, Rel right) min(Expression expr) multiply(Expression left, Expression right) namedScan(Iterable<String> tableName, Iterable<String> columnNames, Iterable<Type> types, Rel.Remap remap) negate(Expression expr) nestedLoopJoin(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, NestedLoopJoin.JoinType joinType, Rel left, Rel right) or(Expression... args) scalarFn(String namespace, String key, Type outputType, FunctionArg... args) scalarSubquery(Rel input, Type type) singleOrList(Expression condition, Expression... options) sort(Function<Rel, Iterable<? extends Expression.SortField>> sortFieldFn, Rel.Remap remap, Rel input) sortField(Expression expression, Expression.SortDirection sortDirection) sortFields(Rel input, int... indexes) subtract(Expression left, Expression right) sum(Expression expr) sum0(Expression expr) switchClause(Expression.Literal condition, Expression then) switchExpression(Expression match, Iterable<? extends Expression.SwitchClause> clauses, Expression defaultClause) userDefinedType(String namespace, String typeName) windowFn(String namespace, String key, Type outputType, Expression.AggregationPhase aggregationPhase, Expression.AggregationInvocation invocation, Expression.WindowBoundsType boundsType, WindowBound lowerBound, WindowBound upperBound, Expression... args)
-
Constructor Details
-
SubstraitBuilder
-
-
Method Details
-
measure
-
measure
-
aggregate
public Aggregate aggregate(Function<Rel, Aggregate.Grouping> groupingFn, Function<Rel, List<Aggregate.Measure>> measuresFn, Rel input) -
aggregate
public Aggregate aggregate(Function<Rel, Aggregate.Grouping> groupingFn, Function<Rel, List<Aggregate.Measure>> measuresFn, Rel.Remap remap, Rel input) -
cross
-
cross
-
fetch
-
fetch
-
limit
-
limit
-
offset
-
offset
-
filter
-
filter
-
innerJoin
public Join innerJoin(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, Rel left, Rel right) -
innerJoin
public Join innerJoin(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, Rel.Remap remap, Rel left, Rel right) -
join
public Join join(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, Join.JoinType joinType, Rel left, Rel right) -
join
public Join join(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, Join.JoinType joinType, Rel.Remap remap, Rel left, Rel right) -
hashJoin
-
hashJoin
-
mergeJoin
-
mergeJoin
-
nestedLoopJoin
public NestedLoopJoin nestedLoopJoin(Function<SubstraitBuilder.JoinInput, Expression> conditionFn, NestedLoopJoin.JoinType joinType, Rel left, Rel right) -
namedScan
-
namedScan
-
emptyScan
-
project
-
project
-
expand
-
expand
-
set
-
set
-
sort
-
sort
-
bool
-
i32
-
fp64
-
str
-
cast
-
fieldReference
-
fieldReferences
-
fieldReference
-
fieldReferences
-
ifThen
public Expression.IfThen ifThen(Iterable<? extends Expression.IfClause> ifClauses, Expression elseClause) -
ifClause
-
singleOrList
-
inPredicate
-
sortFields
-
sortField
public Expression.SortField sortField(Expression expression, Expression.SortDirection sortDirection) -
switchClause
-
switchExpression
public Expression.Switch switchExpression(Expression match, Iterable<? extends Expression.SwitchClause> clauses, Expression defaultClause) -
aggregateFn
public AggregateFunctionInvocation aggregateFn(String namespace, String key, Type outputType, Expression... args) -
grouping
-
grouping
-
count
-
min
-
min
-
max
-
max
-
avg
-
avg
-
sum
-
sum
-
sum0
-
sum0
-
negate
-
add
-
subtract
-
multiply
-
divide
-
equal
-
and
-
or
-
scalarFn
public Expression.ScalarFunctionInvocation scalarFn(String namespace, String key, Type outputType, FunctionArg... args) -
windowFn
public Expression.WindowFunctionInvocation windowFn(String namespace, String key, Type outputType, Expression.AggregationPhase aggregationPhase, Expression.AggregationInvocation invocation, Expression.WindowBoundsType boundsType, WindowBound lowerBound, WindowBound upperBound, Expression... args) -
userDefinedType
-
root
-
plan
-
remap
-
scalarSubquery
-
exists
-