| Package | Description |
|---|---|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.adapter.enumerable.impl |
Calcite-specific classes for implementation of regular and window aggregates.
|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PhysTypeImpl
Implementation of
PhysType. |
| Modifier and Type | Field and Description |
|---|---|
PhysType |
EnumerableRel.Result.physType
Describes the Java type returned by this relational expression, and the
mapping between it and the fields of the logical row type.
|
private PhysType |
EnumerableWindow.WindowRelInputGetter.rowPhysType |
| Modifier and Type | Field and Description |
|---|---|
private List<Pair<Expression,PhysType>> |
RexToLixTranslator.InputGetterImpl.inputs |
| Modifier and Type | Method and Description |
|---|---|
PhysType |
PhysType.component(int field)
Returns the physical type of a given field's component type.
|
PhysType |
PhysTypeImpl.component(int fieldOrdinal) |
PhysType |
PhysType.field(int ordinal)
Returns the physical type of a field.
|
PhysType |
PhysTypeImpl.field(int ordinal) |
PhysType |
PhysType.makeNullable(boolean nullable)
Returns a copy of this type that allows nulls if
nullable is
true. |
PhysType |
PhysTypeImpl.makeNullable(boolean nullable) |
static PhysType |
PhysTypeImpl.of(JavaTypeFactory typeFactory,
RelDataType rowType,
JavaRowFormat format) |
static PhysType |
PhysTypeImpl.of(JavaTypeFactory typeFactory,
RelDataType rowType,
JavaRowFormat format,
boolean optimize) |
(package private) static PhysType |
PhysTypeImpl.of(JavaTypeFactory typeFactory,
Type javaRowClass) |
PhysType |
PhysType.project(List<Integer> integers,
boolean indicator,
JavaRowFormat format)
Projects a given collection of fields from this input record, optionally
with indicator fields, into a particular preferred output format.
|
PhysType |
PhysTypeImpl.project(List<Integer> integers,
boolean indicator,
JavaRowFormat format) |
PhysType |
PhysType.project(List<Integer> integers,
JavaRowFormat format)
Projects a given collection of fields from this input record, into
a particular preferred output format.
|
PhysType |
PhysTypeImpl.project(List<Integer> integers,
JavaRowFormat format) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
PhysType.convertTo(Expression expression,
PhysType targetPhysType)
Converts an enumerable of this physical type to an enumerable that uses a
given physical type for its rows.
|
Expression |
PhysTypeImpl.convertTo(Expression exp,
PhysType targetPhysType) |
private void |
EnumerableWindow.declareAndResetState(JavaTypeFactory typeFactory,
BlockBuilder builder,
EnumerableRel.Result result,
int windowIdx,
List<AggImpState> aggs,
PhysType outputPhysType,
List<Expression> outputRow) |
private Expression |
EnumerableTableScan.fieldExpression(ParameterExpression row_,
int i,
PhysType physType,
JavaRowFormat format) |
private com.google.common.base.Function<BlockBuilder,WinAggFrameResultContext> |
EnumerableWindow.getBlockBuilderWinAggFrameResultContextFunction(JavaTypeFactory typeFactory,
EnumerableRel.Result result,
List<Expression> translatedConstants,
Expression comparator_,
Expression rows_,
ParameterExpression i_,
Expression startX,
Expression endX,
Expression minX,
Expression maxX,
Expression hasRows,
Expression frameRowCount,
Expression partitionRowCount,
DeclarationStatement jDecl,
PhysType inputPhysType) |
private Expression |
EnumerableTableScan.getExpression(PhysType physType) |
private Pair<Expression,Expression> |
EnumerableWindow.getPartitionIterator(BlockBuilder builder,
Expression source_,
PhysType inputPhysType,
Window.Group group,
Expression comparator_) |
private Pair<Expression,Expression> |
EnumerableWindow.getRowCollationKey(BlockBuilder builder,
PhysType inputPhysType,
Window.Group group,
int windowIdx) |
(package private) static Expression |
EnumUtils.joinSelector(JoinRelType joinType,
PhysType physType,
List<PhysType> inputPhysTypes) |
(package private) Expression |
EnumerableThetaJoin.predicate(EnumerableRelImplementor implementor,
BlockBuilder builder,
PhysType leftPhysType,
PhysType rightPhysType,
RexNode condition) |
void |
EnumerableRelImplementor.registerCorrelVariable(String name,
ParameterExpression pe,
BlockBuilder corrBlock,
PhysType physType) |
EnumerableRel.Result |
EnumerableRelImplementor.result(PhysType physType,
BlockStatement block) |
private Expression |
EnumerableTableScan.toRows(PhysType physType,
Expression expression) |
private Expression |
EnumerableWindow.translateBound(RexToLixTranslator translator,
ParameterExpression i_,
Expression row_,
Expression min_,
Expression max_,
Expression rows_,
Window.Group group,
boolean lower,
PhysType physType,
Expression rowComparator,
Expression keySelector,
Expression keyComparator) |
static List<Expression> |
RexToLixTranslator.translateProjects(RexProgram program,
JavaTypeFactory typeFactory,
BlockBuilder list,
PhysType outputPhysType,
Expression root,
RexToLixTranslator.InputGetter inputGetter,
Function1<String,RexToLixTranslator.InputGetter> correlates)
Translates a
RexProgram to a sequence of expressions and
declarations. |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Expression |
EnumUtils.joinSelector(JoinRelType joinType,
PhysType physType,
List<PhysType> inputPhysTypes) |
| Constructor and Description |
|---|
Result(BlockStatement block,
PhysType physType,
JavaRowFormat format) |
WindowRelInputGetter(Expression row,
PhysType rowPhysType,
int actualInputFieldCount,
List<Expression> constants) |
| Constructor and Description |
|---|
InputGetterImpl(List<Pair<Expression,PhysType>> inputs) |
| Modifier and Type | Field and Description |
|---|---|
private PhysType |
AggResultContextImpl.keyPhysType |
| Constructor and Description |
|---|
AggResultContextImpl(BlockBuilder block,
AggregateCall call,
List<Expression> accumulator,
ParameterExpression key,
PhysType keyPhysType)
Creates aggregate result context.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
JdbcToEnumerableConverter.generateGet(EnumerableRelImplementor implementor,
PhysType physType,
BlockBuilder builder,
ParameterExpression resultSet_,
int i,
Expression target,
Expression calendar_,
SqlDialect.CalendarPolicy calendarPolicy) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.