Package org.apache.calcite.interpreter
@DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=FIELD) @DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=PARAMETER) @DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=RETURN)
package org.apache.calcite.interpreter
Provides an implementation of relational expressions using an interpreter.
The implementation is not efficient compared to generated code, but preparation time is less, and so the total prepare + execute time is competitive for queries over small data sets.
-
ClassDescriptionInterpreter node that implements an
Aggregate
.Implementation ofSUM
over BigDecimal values as a user-defined aggregate.Implementation ofSUM
over DOUBLE values as a user-defined aggregate.Implementation ofSUM
over INTEGER values as a user-defined aggregate.Implementation ofSUM
over BIGINT values as a user-defined aggregate.Implementation ofMAX
function to calculate the maximum ofBigDecimal
values as a user-defined aggregate.Implementation ofMAX
function to calculate the maximum ofboolean
values as a user-defined aggregate.Implementation ofMAX
function to calculate the maximum ofdouble
andreal
values as a user-defined aggregate.Implementation ofMAX
function to calculate the maximum offloat
values as a user-defined aggregate.Implementation ofMAX
function to calculate the maximum ofinteger
values as a user-defined aggregate.Implementation ofMAX
function to calculate the maximum oflong
values as a user-defined aggregate.Implementation ofMIN
function to calculate the minimum ofBigDecimal
values as a user-defined aggregate.Implementation ofMIN
function to calculate the minimum ofboolean
values as a user-defined aggregate.Implementation ofMIN
function to calculate the minimum ofdouble
andreal
values as a user-defined aggregate.Implementation ofMIN
function to calculate the minimum offloat
values as a user-defined aggregate.Implementation ofMIN
function to calculate the minimum ofinteger
values as a user-defined aggregate.Implementation ofMIN
function to calculate the minimum oflong
values as a user-defined aggregate.Common implementation of comparison aggregate methods over numeric values as a user-defined aggregate.Calling convention that returns results as anEnumerable
of object arrays.Relational expression that can implement itself in Bindable convention.Utilities pertaining toBindableRel
andBindableConvention
.Implementation ofAggregate
in bindable calling convention.Rule that converts anAggregate
to bindable convention.Implementation ofFilter
in bindable convention.Rule that converts aFilter
to bindable convention.Implementation ofIntersect
in bindable calling convention.Implementation ofJoin
in bindable calling convention.Rule to convert aLogicalJoin
to aBindables.BindableJoin
.Implementation ofMatch
in bindable convention.Rule to convert aLogicalMatch
to aBindables.BindableMatch
.Implementation ofMinus
in bindable calling convention.Implementation ofProject
in bindable calling convention.Rule to convert aLogicalProject
to aBindables.BindableProject
.Rule to convert anSetOp
to aBindables.BindableUnion
orBindables.BindableIntersect
orBindables.BindableMinus
.Implementation ofSort
bindable calling convention.Rule to convert anSort
to aBindables.BindableSort
.Scan of a table that implementsScannableTable
and therefore can be converted into anEnumerable
.Rule that converts aTableScan
to bindable convention.Rule configuration.Implementation ofUnion
in bindable calling convention.Implementation ofValues
in bindable calling convention.Rule that converts aValues
to bindable convention.Implementation ofWindow
in bindable convention.Rule to convert aLogicalWindow
to aBindables.BindableWindow
.Interpreter node that implements aCollect
.Context while converting a tree ofRelNode
to a program that can be run by anInterpreter
.Context for executing a scalar expression in an interpreter.Interpreter node that implements aFilter
.Calling convention that returns results as anEnumerable
of object arrays.Relational expression that converts any relational expression input toInterpretableConvention
, by wrapping it in an interpreter.Relational expression that can implement itself using an interpreter.Interpreter.Utilities relating toInterpreter
andInterpretableConvention
.Interpreter node that implements aJoin
.Interpreter node that implements aMatch
.Relational expression that can be executed using an interpreter.Helper methods forNode
and implementations for core relational expressions.Extension toInterpreter.CompilerImpl
that knows how to handle the core logicalRelNode
s.Rule to convert a relational expression fromConvention.NONE
toBindableConvention
.Interpreter node that implements aProject
.Row.Utility class to build row objects.Compiled scalar expression.Produces aScalar
when a query is executed.Sink to which to send rows.Interpreter node that implements aSort
.Source of rows.Interpreter node that implements aTableFunctionScan
.Interpreter node that implements aTableScan
.Interpreter node that implements aUncollect
.Deprecated.Interpreter node that implements aValues
.Interpreter node that implements aWindow
.
SetOpNode