| Package | Description |
|---|---|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| org.apache.calcite.rel.logical |
Defines logical relational expressions.
|
| org.apache.calcite.rel.metadata |
Defines metadata interfaces and utilities for relational
expressions.
|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumerableMergeJoin |
EnumerableMergeJoin.create(RelNode left,
RelNode right,
RexLiteral condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
JoinRelType joinType) |
static Expression |
RexToLixTranslator.translateLiteral(RexLiteral literal,
RelDataType type,
JavaTypeFactory typeFactory,
RexImpTable.NullAs nullAs)
Translates a literal.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumerableValues |
EnumerableValues.create(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates an EnumerableValues.
|
| Modifier and Type | Method and Description |
|---|---|
static RelNode |
RelOptUtil.createExistsPlan(RelOptCluster cluster,
RelNode seekRel,
List<RexNode> conditions,
RexLiteral extraExpr,
String extraName)
Creates a plan suitable for use in
EXISTS or IN
statements. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> |
RelInput.getTuples(String tag) |
| Modifier and Type | Field and Description |
|---|---|
List<RexLiteral> |
Window.constants |
protected com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> |
Values.tuples |
| Modifier and Type | Method and Description |
|---|---|
List<RexLiteral> |
Window.getConstants()
Returns constants that are additional inputs of current relation.
|
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> |
Values.getTuples()
Returns the rows of literals represented by this Values relational
expression.
|
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> |
Values.getTuples(RelInput input) |
| Constructor and Description |
|---|
Values(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples,
RelTraitSet traits)
Creates a new Values.
|
Window(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates a window relational expression.
|
| Modifier and Type | Method and Description |
|---|---|
static LogicalValues |
LogicalValues.create(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a LogicalValues.
|
| Constructor and Description |
|---|
LogicalValues(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Deprecated.
|
LogicalValues(RelOptCluster cluster,
RelTraitSet traitSet,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a LogicalValues.
|
LogicalWindow(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates a LogicalWindow.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelCollation> |
RelMdCollation.values(RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Helper method to determine a
Values's collation. |
static RelDistribution |
RelMdDistribution.values(RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Helper method to determine a
Values's distribution. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
CalcRelSplitter.RelType.canImplement(RexLiteral literal) |
| Modifier and Type | Method and Description |
|---|---|
RexLiteral |
RexBuilder.constantNull()
Creates a constant for the SQL
NULL value. |
static RexLiteral |
RexLiteral.fromJdbcString(RelDataType type,
SqlTypeName typeName,
String literal)
Converts a Jdbc string into a RexLiteral.
|
RexLiteral |
RexBuilder.makeApproxLiteral(BigDecimal bd)
Creates a double-precision literal.
|
RexLiteral |
RexBuilder.makeApproxLiteral(BigDecimal bd,
RelDataType type)
Creates an approximate numeric literal (double or float).
|
RexLiteral |
RexBuilder.makeBigintLiteral(BigDecimal bd)
Creates a BIGINT literal.
|
RexLiteral |
RexBuilder.makeBinaryLiteral(ByteString byteString)
Creates a byte array literal.
|
RexLiteral |
RexBuilder.makeCharLiteral(NlsString str)
Creates a character string literal from an
NlsString. |
RexLiteral |
RexBuilder.makeDateLiteral(Calendar date)
Creates a Date literal.
|
RexLiteral |
RexBuilder.makeExactLiteral(BigDecimal bd)
Creates a numeric literal.
|
RexLiteral |
RexBuilder.makeExactLiteral(BigDecimal bd,
RelDataType type)
Creates a numeric literal.
|
RexLiteral |
RexBuilder.makeFlag(Enum flag)
Creates a literal representing a flag.
|
RexLiteral |
RexBuilder.makeIntervalLiteral(BigDecimal v,
SqlIntervalQualifier intervalQualifier)
Creates an interval literal.
|
RexLiteral |
RexBuilder.makeIntervalLiteral(SqlIntervalQualifier intervalQualifier)
Creates an interval literal.
|
RexLiteral |
RexBuilder.makeLiteral(boolean b)
Creates a boolean literal.
|
protected RexLiteral |
RexBuilder.makeLiteral(Comparable o,
RelDataType type,
SqlTypeName typeName)
Internal method to create a call to a literal.
|
RexLiteral |
RexBuilder.makeLiteral(String s)
Creates a character string literal.
|
protected RexLiteral |
RexBuilder.makePreciseStringLiteral(String s)
Creates a character string literal with type CHAR and default charset and
collation.
|
RexLiteral |
RexBuilder.makeTimeLiteral(Calendar time,
int precision)
Creates a Time literal.
|
RexLiteral |
RexBuilder.makeTimestampLiteral(Calendar timestamp,
int precision)
Creates a Timestamp literal.
|
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
RexToSqlNodeConverterImpl.convertLiteral(RexLiteral literal) |
SqlNode |
RexToSqlNodeConverter.convertLiteral(RexLiteral literal)
Converts a
RexLiteral to a SqlLiteral. |
R |
RexVisitorImpl.visitLiteral(RexLiteral literal) |
RexNode |
RexShuttle.visitLiteral(RexLiteral literal) |
R |
RexVisitor.visitLiteral(RexLiteral literal) |
| Modifier and Type | Method and Description |
|---|---|
RexLiteral |
SqlNodeToRexConverter.convertInterval(SqlRexContext cx,
SqlIntervalQualifier intervalQualifier)
Converts a
SQL Interval Qualifier to a
REX literal. |
RexLiteral |
SqlNodeToRexConverterImpl.convertInterval(SqlRexContext cx,
SqlIntervalQualifier intervalQualifier) |
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.