public class Interpreter extends AbstractEnumerable<Object[]>
Contains the context for interpreting relational expressions. In particular it holds working state while the data flow graph is being assembled.
| Modifier and Type | Class and Description |
|---|---|
static class |
Interpreter.Compiler
|
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.calcite.interpreter.Interpreter.ScalarCompiler |
scalarCompiler |
| Constructor and Description |
|---|
Interpreter(DataContext dataContext,
RelNode rootRel) |
| Modifier and Type | Method and Description |
|---|---|
Scalar |
compile(List<RexNode> nodes,
RelDataType inputRowType)
Compiles an expression to an executable form.
|
Context |
createContext() |
Enumerator<Object[]> |
enumerator() |
DataContext |
getDataContext() |
Sink |
sink(RelNode rel) |
Source |
source(RelNode rel,
int ordinal) |
iteratoraggregate, aggregate, aggregate, all, any, any, asEnumerable, asOrderedQueryable, asQueryable, average, average, average, average, average, average, average, average, average, average, cast, concat, contains, contains, correlateJoin, count, count, createOrderedEnumerable, defaultIfEmpty, defaultIfEmpty, distinct, distinct, elementAt, elementAtOrDefault, except, except, first, first, firstOrDefault, firstOrDefault, foreach, getThis, getThisOrdered, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupJoin, groupJoin, intersect, intersect, into, join, join, join, last, last, lastOrDefault, lastOrDefault, longCount, longCount, max, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, min, ofType, orderBy, orderBy, orderByDescending, orderByDescending, reverse, select, select, selectMany, selectMany, selectMany, selectMany, sequenceEqual, sequenceEqual, single, single, singleOrDefault, singleOrDefault, skip, skipWhile, skipWhile, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, take, takeWhile, takeWhile, thenBy, thenBy, thenByDescending, thenByDescending, toList, toLookup, toLookup, toLookup, toLookup, toMap, toMap, toMap, toMap, union, union, where, where, zipprotected final org.apache.calcite.interpreter.Interpreter.ScalarCompiler scalarCompiler
public Interpreter(DataContext dataContext, RelNode rootRel)
public Enumerator<Object[]> enumerator()
public Scalar compile(List<RexNode> nodes, RelDataType inputRowType)
public Context createContext()
public DataContext getDataContext()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.