| Package | Description |
|---|---|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
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.sql2rel |
Translates a SQL parse tree to relational expression.
|
| org.apache.calcite.tools |
Provides utility classes.
|
| org.apache.calcite.util |
Provides utility classes.
|
| org.apache.calcite.util.mapping |
Support for algebraic maps.
|
| Modifier and Type | Method and Description |
|---|---|
private static List<AggregateCall> |
SubstitutionVisitor.apply(Mapping mapping,
List<AggregateCall> aggCallList) |
static MutableAggregate |
SubstitutionVisitor.permute(MutableAggregate aggregate,
MutableRel input,
Mapping mapping) |
static RelDataType |
RelOptUtil.permute(RelDataTypeFactory typeFactory,
RelDataType rowType,
Mapping mapping)
Permutes a record type according to a mapping.
|
static RelNode |
RelOptUtil.projectMapping(RelNode rel,
Mapping mapping,
List<String> fieldNames,
RelFactories.ProjectFactory projectFactory)
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) Mapping |
RelMdPredicates.JoinConditionBasedPredicateInference.ExprsItr.nextMapping |
| Modifier and Type | Method and Description |
|---|---|
Mapping |
RelMdPredicates.JoinConditionBasedPredicateInference.ExprsItr.next() |
| Modifier and Type | Method and Description |
|---|---|
(package private) Iterable<Mapping> |
RelMdPredicates.JoinConditionBasedPredicateInference.mappings(RexNode predicate) |
| Modifier and Type | Method and Description |
|---|---|
private static RexNode |
AbstractMaterializedViewRule.shuttleReferences(RexBuilder rexBuilder,
RexNode node,
Mapping mapping)
Replaces all the input references by the position in the
input column set.
|
private static RexNode |
AbstractMaterializedViewRule.shuttleReferences(RexBuilder rexBuilder,
RexNode expr,
com.google.common.collect.Multimap<String,Integer> exprsLineage,
RelNode node,
Mapping rewritingMapping)
Replaces all the possible subexpressions by input references
to the input node.
|
| Modifier and Type | Method and Description |
|---|---|
protected Mapping |
RelFieldTrimmer.createMapping(ImmutableBitSet fieldsUsed,
int fieldCount) |
| Modifier and Type | Method and Description |
|---|---|
protected RelFieldTrimmer.TrimResult |
RelFieldTrimmer.result(RelNode r,
Mapping mapping) |
| Constructor and Description |
|---|
TrimResult(RelNode left,
Mapping right)
Creates a TrimResult.
|
| Modifier and Type | Method and Description |
|---|---|
RelBuilder |
RelBuilder.permute(Mapping mapping) |
| Modifier and Type | Class and Description |
|---|---|
class |
Permutation
Represents a mapping which reorders elements in an array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Permutation.setAll(Mapping mapping) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSourceMapping
Simple implementation of
Mappings.TargetMapping where the
number of sources and targets are specified as constructor parameters and you
just need to implement one method, |
class |
AbstractTargetMapping
Simple implementation of
Mappings.TargetMapping where the
number of sources and targets are specified as constructor parameters and you
just need to implement one method, |
static class |
Mappings.AbstractMapping
Abstract implementation of
Mapping. |
static class |
Mappings.FiniteAbstractMapping
Abstract implementation of mapping where both source and target
domains are finite.
|
static class |
Mappings.IdentityMapping
The identity mapping, of a given size, or infinite.
|
private static class |
Mappings.InverseMapping
Decorator which converts any
Mapping into the inverse of itself. |
static class |
Mappings.OverridingSourceMapping
Source mapping that returns the same result as a parent
Mappings.SourceMapping except for specific overriding elements. |
static class |
Mappings.OverridingTargetMapping
Target mapping that returns the same result as a parent
Mappings.TargetMapping except for specific overriding elements. |
private static class |
Mappings.PartialFunctionImpl
Implementation of
Mapping where a source can have at most one
target, and a target can have any number of sources. |
static class |
Mappings.PartialMapping
A mapping where a source has at most one target, and every target has at
most one source.
|
(package private) static class |
Mappings.SurjectionWithInverse
A surjection with inverse has precisely one source for each target.
|
| Modifier and Type | Field and Description |
|---|---|
private Mapping |
Mappings.InverseMapping.parent |
| Modifier and Type | Method and Description |
|---|---|
static Mapping |
Mappings.bijection(List<Integer> targets)
Creates a bijection.
|
static Mapping |
Mappings.bijection(Map<Integer,Integer> targets)
Creates a bijection.
|
static Mapping |
Mappings.create(MappingType mappingType,
int sourceCount,
int targetCount)
Creates a mapping with required properties.
|
static Mapping |
Mappings.divide(Mapping mapping1,
Mapping mapping2)
Divides one mapping by another.
|
Mapping |
Mappings.SourceMapping.inverse() |
Mapping |
Mappings.TargetMapping.inverse() |
Mapping |
Mappings.PartialMapping.inverse() |
Mapping |
Mappings.IdentityMapping.inverse() |
Mapping |
Mappings.OverridingSourceMapping.inverse() |
Mapping |
Mappings.OverridingTargetMapping.inverse() |
Mapping |
Mappings.PartialFunctionImpl.inverse() |
Mapping |
Mappings.InverseMapping.inverse() |
Mapping |
AbstractSourceMapping.inverse() |
Mapping |
AbstractTargetMapping.inverse() |
static Mapping |
Mappings.invert(Mapping mapping)
Converts a mapping to its inverse.
|
static Mapping |
Mappings.multiply(Mapping mapping1,
Mapping mapping2)
Multiplies one mapping by another.
|
static Mapping |
Mappings.source(List<Integer> targets,
int targetCount) |
static Mapping |
Mappings.target(Iterable<IntPair> pairs,
int sourceCount,
int targetCount) |
static Mapping |
Mappings.target(List<Integer> sources,
int sourceCount) |
| Modifier and Type | Method and Description |
|---|---|
static BitSet |
Mappings.apply(Mapping mapping,
BitSet bitSet)
Applies a mapping to a BitSet.
|
static ImmutableBitSet |
Mappings.apply(Mapping mapping,
ImmutableBitSet bitSet)
Applies a mapping to an
ImmutableBitSet. |
static <T> List<T> |
Mappings.apply(Mapping mapping,
List<T> list)
Applies a mapping to a list.
|
static com.google.common.collect.ImmutableList<ImmutableBitSet> |
Mappings.apply2(Mapping mapping,
Iterable<ImmutableBitSet> bitSets)
Applies a mapping to a collection of
ImmutableBitSets. |
static List<Integer> |
Mappings.apply2(Mapping mapping,
List<Integer> list) |
static <T> List<T> |
Mappings.apply3(Mapping mapping,
List<T> list)
Creates a view of a list, permuting according to a mapping.
|
static Mapping |
Mappings.divide(Mapping mapping1,
Mapping mapping2)
Divides one mapping by another.
|
static Mapping |
Mappings.invert(Mapping mapping)
Converts a mapping to its inverse.
|
static Mapping |
Mappings.multiply(Mapping mapping1,
Mapping mapping2)
Multiplies one mapping by another.
|
void |
Mappings.PartialFunctionImpl.setAll(Mapping mapping) |
| Constructor and Description |
|---|
InverseMapping(Mapping parent) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.