| Package | Description |
|---|---|
| org.apache.calcite |
Main package for Calcite, the dynamic data management platform.
|
| org.apache.calcite.adapter.clone |
Provides utility classes.
|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.adapter.java |
Query provider based on Java in-memory data
structures.
|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.interpreter |
Provides an implementation of relational expressions using an interpreter.
|
| org.apache.calcite.jdbc |
JDBC driver for Calcite.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.runtime |
Utilities required at runtime.
|
| org.apache.calcite.schema |
Schema SPI.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
DataContext.Variable.get(DataContext dataContext)
Returns the value of this variable in a given data context.
|
| Modifier and Type | Method and Description |
|---|---|
Enumerable<Object[]> |
ArrayTable.scan(DataContext root) |
| Modifier and Type | Method and Description |
|---|---|
Enumerable<Object[]> |
EnumerableBindable.bind(DataContext dataContext) |
| Modifier and Type | Method and Description |
|---|---|
Enumerable<Object[]> |
ReflectiveSchema.ReflectiveTable.scan(DataContext root) |
| Modifier and Type | Method and Description |
|---|---|
Enumerable<Object[]> |
JdbcTable.scan(DataContext root) |
| Modifier and Type | Field and Description |
|---|---|
private DataContext |
AggregateNode.dataContext |
private DataContext |
Interpreter.dataContext |
DataContext |
InterpretableRel.InterpreterImplementor.dataContext |
DataContext |
Context.root |
| Modifier and Type | Method and Description |
|---|---|
DataContext |
Compiler.getDataContext() |
DataContext |
Interpreter.CompilerImpl.getDataContext() |
| Modifier and Type | Method and Description |
|---|---|
Enumerable<Object[]> |
InterpretableConverter.bind(DataContext dataContext) |
Enumerable<Object[]> |
Bindables.BindableTableScan.bind(DataContext dataContext) |
Enumerable<Object[]> |
Bindables.BindableFilter.bind(DataContext dataContext) |
Enumerable<Object[]> |
Bindables.BindableProject.bind(DataContext dataContext) |
Enumerable<Object[]> |
Bindables.BindableSort.bind(DataContext dataContext) |
Enumerable<Object[]> |
Bindables.BindableJoin.bind(DataContext dataContext) |
Enumerable<Object[]> |
Bindables.BindableUnion.bind(DataContext dataContext) |
Enumerable<Object[]> |
Bindables.BindableValues.bind(DataContext dataContext) |
Enumerable<Object[]> |
Bindables.BindableAggregate.bind(DataContext dataContext) |
Enumerable<Object[]> |
Bindables.BindableWindow.bind(DataContext dataContext) |
private static Enumerable<Object[]> |
Bindables.help(DataContext dataContext,
BindableRel rel)
Helper method that converts a bindable relational expression into a
record iterator.
|
| Constructor and Description |
|---|
Context(DataContext root) |
Interpreter(DataContext dataContext,
RelNode rootRel)
Creates an Interpreter.
|
InterpreterImplementor(Compiler compiler,
CalcitePrepare.SparkHandler spark,
DataContext dataContext) |
ScalarAccumulatorDef(Scalar initScalar,
Scalar addScalar,
Scalar endScalar,
int rowLength,
int accumulatorLength,
DataContext root) |
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
CalciteConnectionImpl.DataContextImpl
Implementation of DataContext.
|
private static class |
CalciteConnectionImpl.SlimDataContext
Implementation of
DataContext that has few variables and is
Serializable. |
| Modifier and Type | Method and Description |
|---|---|
static DataContext |
CalciteMetaImpl.createDataContext(CalciteConnection connection)
A trojan-horse method, subject to change without notice.
|
DataContext |
CalciteConnectionImpl.createDataContext(Map<String,Object> parameterValues,
CalciteSchema rootSchema) |
DataContext |
CalciteConnectionImpl.ContextImpl.getDataContext() |
DataContext |
CalcitePrepare.Context.getDataContext() |
| Modifier and Type | Method and Description |
|---|---|
Enumerable<T> |
CalcitePrepare.CalciteSignature.enumerable(DataContext dataContext) |
| Modifier and Type | Class and Description |
|---|---|
class |
VisitorDataContext
DataContext for evaluating an RexExpression
|
| Modifier and Type | Method and Description |
|---|---|
static DataContext |
VisitorDataContext.of(RelDataType rowType,
List<Pair<RexInputRef,RexNode>> usageList) |
static DataContext |
VisitorDataContext.of(RelDataType rowType,
RexNode rex) |
static DataContext |
VisitorDataContext.of(RelNode targetRel,
LogicalFilter queryRel) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
RexImplicationChecker.isSatisfiable(RexNode second,
DataContext dataValues) |
| Modifier and Type | Field and Description |
|---|---|
private DataContext |
RexExecutable.dataContext |
private DataContext |
RexExecutorImpl.dataContext |
| Modifier and Type | Field and Description |
|---|---|
private Function1<DataContext,Object[]> |
RexExecutable.compiledFunction |
| Modifier and Type | Method and Description |
|---|---|
private static Function1<DataContext,Object[]> |
RexExecutable.compile(String code,
Object reason) |
Function1<DataContext,Object[]> |
RexExecutable.getFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
RexExecutable.setDataContext(DataContext dataContext) |
| Constructor and Description |
|---|
RexExecutorImpl(DataContext dataContext) |
| Modifier and Type | Method and Description |
|---|---|
Enumerable<T> |
Bindable.bind(DataContext dataContext)
Executes this statement and returns an enumerable which will yield rows.
|
static int |
SqlFunctions.currentDate(DataContext root)
SQL
CURRENT_DATE function. |
static int |
SqlFunctions.currentTime(DataContext root)
SQL
CURRENT_TIME function. |
static long |
SqlFunctions.currentTimestamp(DataContext root)
SQL
CURRENT_TIMESTAMP function. |
static int |
SqlFunctions.localTime(DataContext root)
SQL
LOCAL_TIME function. |
static long |
SqlFunctions.localTimestamp(DataContext root)
SQL
LOCAL_TIMESTAMP function. |
static TimeZone |
SqlFunctions.timeZone(DataContext root) |
| Modifier and Type | Class and Description |
|---|---|
private static class |
Schemas.DummyDataContext
Dummy data context that has no variables.
|
| Modifier and Type | Method and Description |
|---|---|
static DataContext |
Schemas.createDataContext(Connection connection,
SchemaPlus rootSchema) |
| Modifier and Type | Method and Description |
|---|---|
static Enumerable<Object[]> |
Schemas.enumerable(FilterableTable table,
DataContext root)
Returns an
Enumerable over the rows of
a given table, not applying any filters, representing each row as an object
array. |
static Enumerable<Object[]> |
Schemas.enumerable(ProjectableFilterableTable table,
DataContext root)
Returns an
Enumerable over the rows of
a given table, not applying any filters and projecting all columns,
representing each row as an object array. |
static Enumerable<Object[]> |
Schemas.enumerable(ScannableTable table,
DataContext root)
Returns an
Enumerable over the rows of
a given table, representing each row as an object array. |
private static CalcitePrepare.Context |
Schemas.makeContext(CalciteConnectionConfig connectionConfig,
JavaTypeFactory typeFactory,
DataContext dataContext,
CalciteSchema schema,
List<String> schemaPath,
List<String> objectPath_) |
static <E> Queryable<E> |
Schemas.queryable(DataContext root,
Class<E> clazz,
Iterable<? extends String> names)
Returns a
Queryable, given a fully-qualified table name as an
iterable. |
static <E> Queryable<E> |
Schemas.queryable(DataContext root,
Class<E> clazz,
String... names)
Returns a
Queryable, given a fully-qualified table name. |
static <E> Queryable<E> |
Schemas.queryable(DataContext root,
SchemaPlus schema,
Class<E> clazz,
String tableName)
Returns a
Queryable, given a schema and table name. |
Enumerable<Object[]> |
ScannableTable.scan(DataContext root)
Returns an enumerator over the rows in this Table.
|
Enumerable<Object[]> |
FilterableTable.scan(DataContext root,
List<RexNode> filters)
Returns an enumerator over the rows in this Table.
|
Enumerable<Object[]> |
ProjectableFilterableTable.scan(DataContext root,
List<RexNode> filters,
int[] projects)
Returns an enumerable over the rows in this Table.
|
static Table |
Schemas.table(DataContext root,
String... names)
Returns an
Enumerable over object
arrays, given a fully-qualified table name which leads to a
ScannableTable. |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.