| Package | Description |
|---|---|
| org.apache.calcite.adapter.elasticsearch |
Base classes for a query provider based on an Elasticsearch DB.
|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| 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.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.mutable |
Defines mutable 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.
|
| org.apache.calcite.tools |
Provides utility classes.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) Map<String,RexLiteral> |
ElasticsearchFilter.Translator.eqMap |
(package private) com.google.common.collect.Multimap<String,Pair<String,RexLiteral>> |
ElasticsearchFilter.Translator.multimap |
| Modifier and Type | Method and Description |
|---|---|
private static Object |
ElasticsearchFilter.Translator.literalValue(RexLiteral literal) |
private void |
ElasticsearchFilter.Translator.translateOp2(String op,
String name,
RexLiteral right) |
String |
ElasticsearchRules.RexToElasticsearchTranslator.visitLiteral(RexLiteral literal) |
| 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.
|
| Constructor and Description |
|---|
EnumerableValues(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples,
RelTraitSet traitSet)
Creates an EnumerableValues.
|
EnumerableWindow(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates an EnumerableWindowRel.
|
| Constructor and Description |
|---|
JdbcValues(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples,
RelTraitSet traitSet) |
| Modifier and Type | Method and Description |
|---|---|
private com.google.common.collect.ImmutableList<Row> |
ValuesNode.createRows(Compiler compiler,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples) |
| Constructor and Description |
|---|
BindableValues(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples,
RelTraitSet traitSet) |
BindableWindow(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates an BindableWindowRel.
|
| Modifier and Type | Method and Description |
|---|---|
static RelNode |
RelOptUtil.createExistsPlan(RelOptCluster cluster,
RelNode seekRel,
List<RexNode> conditions,
RexLiteral extraExpr,
String extraName)
Deprecated.
|
| 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 |
|---|---|
com.google.common.collect.ImmutableList<RexLiteral> |
Window.constants |
private static com.google.common.base.Function<com.google.common.collect.ImmutableList<RexLiteral>,Object> |
Values.F
Lambda that helps render tuples as strings.
|
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) |
| Modifier and Type | Method and Description |
|---|---|
RelNode |
RelFactories.ValuesFactory.createValues(RelOptCluster cluster,
RelDataType rowType,
List<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a Values.
|
RelNode |
RelFactories.ValuesFactoryImpl.createValues(RelOptCluster cluster,
RelDataType rowType,
List<com.google.common.collect.ImmutableList<RexLiteral>> tuples) |
| 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 traitSet,
RelNode input,
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.
|
static LogicalWindow |
LogicalWindow.create(RelTraitSet traitSet,
RelNode input,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates a LogicalWindow.
|
| 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 traitSet,
RelNode input,
List<RexLiteral> constants,
RelDataType rowType,
List<Window.Group> groups)
Creates a LogicalWindow.
|
| Modifier and Type | Method and Description |
|---|---|
private static com.google.common.collect.Ordering<List<RexLiteral>> |
RelMdCollation.comparator(RelFieldCollation fieldCollation) |
| Modifier and Type | Method and Description |
|---|---|
Double |
RelMdUtil.CardOfProjExpr.visitLiteral(RexLiteral literal) |
| Modifier and Type | Method and Description |
|---|---|
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. |
static List<RelCollation> |
RelMdCollation.values(RelMetadataQuery mq,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Helper method to determine a
Values's collation. |
| Modifier and Type | Field and Description |
|---|---|
List<RexLiteral> |
MutableWindow.constants |
| Modifier and Type | Method and Description |
|---|---|
static MutableWindow |
MutableWindow.of(RelDataType rowType,
MutableRel input,
List<Window.Group> groups,
List<RexLiteral> constants)
Creates a MutableWindow.
|
| Constructor and Description |
|---|
MutableWindow(RelDataType rowType,
MutableRel input,
List<Window.Group> groups,
List<RexLiteral> constants) |
| Modifier and Type | Field and Description |
|---|---|
private List<RexLiteral> |
ValuesReduceRule.MyRexShuttle.literalList |
| Modifier and Type | Method and Description |
|---|---|
private RexLiteral |
DateRangeRules.ExtractShuttle.dateTimeLiteral(RexBuilder rexBuilder,
Calendar calendar,
RexNode operand) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
CalcRelSplitter.RelType.canImplement(RexLiteral literal) |
(package private) RexNode |
DateRangeRules.ExtractShuttle.compareExtract(SqlKind comparison,
RexNode operand,
RexLiteral literal) |
private RexNode |
DateRangeRules.ExtractShuttle.compareFloorCeil(SqlKind comparison,
RexNode operand,
RexLiteral timeLiteral,
org.apache.calcite.avatica.util.TimeUnitRange timeUnit,
boolean floor) |
private Calendar |
DateRangeRules.ExtractShuttle.timestampValue(RexLiteral timeLiteral) |
Void |
ReduceExpressionsRule.ReducibleExprLocator.visitLiteral(RexLiteral literal) |
Void |
CalcRelSplitter.ImplementTester.visitLiteral(RexLiteral literal) |
| Modifier and Type | Field and Description |
|---|---|
private RexLiteral |
RexBuilder.booleanFalse |
private RexLiteral |
RexBuilder.booleanTrue |
private RexLiteral |
RexBuilder.charEmpty |
private RexLiteral |
RexBuilder.constantNull |
(package private) RexLiteral |
RexSimplify.Comparison.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(org.apache.calcite.avatica.util.ByteString byteString)
Creates a byte array literal.
|
RexLiteral |
RexBuilder.makeCharLiteral(NlsString str)
Creates a character string literal from an
NlsString. |
RexLiteral |
RexBuilder.makeDateLiteral(Calendar calendar)
Deprecated.
|
RexLiteral |
RexBuilder.makeDateLiteral(DateString 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 a literal representing an interval value, for example
INTERVAL '3-7' YEAR TO MONTH. |
RexLiteral |
RexBuilder.makeIntervalLiteral(SqlIntervalQualifier intervalQualifier)
Creates a literal representing an interval type, for example
YEAR TO MONTH or DOW. |
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.
|
RexLiteral |
RexBuilder.makeNullLiteral(RelDataType type)
Creates a literal whose value is NULL, with a particular type.
|
protected RexLiteral |
RexBuilder.makePreciseStringLiteral(String s)
Creates a character string literal with type CHAR and default charset and
collation.
|
RexLiteral |
RexBuilder.makeTimeLiteral(Calendar calendar,
int precision)
Deprecated.
|
RexLiteral |
RexBuilder.makeTimeLiteral(TimeString time,
int precision)
Creates a Time literal.
|
RexLiteral |
RexBuilder.makeTimestampLiteral(Calendar calendar,
int precision)
Deprecated.
|
RexLiteral |
RexBuilder.makeTimestampLiteral(TimestampString timestamp,
int precision)
Creates a Timestamp literal.
|
RexLiteral |
RexBuilder.makeTimestampWithLocalTimeZoneLiteral(TimestampString timestamp,
int precision)
Creates a Timestamp with local time-zone literal.
|
RexLiteral |
RexBuilder.makeTimeWithLocalTimeZoneLiteral(TimeString time,
int precision)
Creates a Time with local time-zone literal.
|
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
RexToSqlNodeConverterImpl.convertLiteral(RexLiteral literal) |
SqlNode |
RexToSqlNodeConverter.convertLiteral(RexLiteral literal)
Converts a
RexLiteral to a SqlLiteral. |
RexNode |
RexCopier.visitLiteral(RexLiteral literal) |
R |
RexVisitor.visitLiteral(RexLiteral literal) |
Boolean |
RexUtil.ConstantFinder.visitLiteral(RexLiteral literal) |
RexNode |
RexUtil.ExpressionNormalizer.visitLiteral(RexLiteral literal) |
R |
RexVisitorImpl.visitLiteral(RexLiteral literal) |
RexNode |
RexShuttle.visitLiteral(RexLiteral literal) |
RexNode |
RexProgramBuilder.RegisterShuttle.visitLiteral(RexLiteral literal) |
RexNode |
RexProgram.Marshaller.visitLiteral(RexLiteral literal) |
R |
RexBiVisitor.visitLiteral(RexLiteral literal,
P arg) |
RelOptUtil.Logic |
LogicVisitor.visitLiteral(RexLiteral literal,
RelOptUtil.Logic arg) |
| Constructor and Description |
|---|
Comparison(RexNode ref,
SqlKind kind,
RexLiteral literal) |
| Modifier and Type | Method and Description |
|---|---|
RexLiteral |
SqlNodeToRexConverterImpl.convertInterval(SqlRexContext cx,
SqlIntervalQualifier intervalQualifier) |
RexLiteral |
SqlNodeToRexConverter.convertInterval(SqlRexContext cx,
SqlIntervalQualifier intervalQualifier)
Converts a
SQL Interval Qualifier to a
REX literal. |
private RexLiteral |
SqlToRelConverter.convertLiteralInValuesList(SqlNode sqlNode,
SqlToRelConverter.Blackboard bb,
RelDataType rowType,
int iField) |
private static RexLiteral |
RelDecorrelator.projectedLiteral(RelNode rel,
int i)
Returns a literal output field, or null if it is not literal.
|
| Modifier and Type | Method and Description |
|---|---|
private RexNode |
RelDecorrelator.RemoveCorrelationRexShuttle.createCaseExpression(RexInputRef nullInputRef,
RexLiteral lit,
RexNode rexNode) |
RexNode |
RelDecorrelator.RemoveCorrelationRexShuttle.visitLiteral(RexLiteral literal) |
| Modifier and Type | Method and Description |
|---|---|
private com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> |
RelBuilder.tupleList(int columnCount,
Object[] values) |
| Modifier and Type | Method and Description |
|---|---|
RelBuilder |
RelBuilder.values(Iterable<? extends List<RexLiteral>> tupleList,
RelDataType rowType)
Creates a
Values with a specified row type. |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.