| Package | Description |
|---|---|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| org.apache.calcite.util |
Provides utility classes.
|
| org.apache.calcite.util.mapping |
Support for algebraic maps.
|
| Modifier and Type | Method and Description |
|---|---|
static RelDataType |
RelOptUtil.permute(RelDataTypeFactory typeFactory,
RelDataType rowType,
Mapping mapping)
Permutes a record type according to a mapping.
|
static org.apache.calcite.plan.SubstitutionVisitor.MutableAggregate |
SubstitutionVisitor.permute(org.apache.calcite.plan.SubstitutionVisitor.MutableAggregate aggregate,
org.apache.calcite.plan.SubstitutionVisitor.MutableRel input,
Mapping mapping) |
static RelNode |
RelOptUtil.projectMapping(RelNode rel,
Mapping mapping,
List<String> fieldNames,
RelFactories.ProjectFactory projectFactory)
Creates a relational expression which projects the output fields of a
relational expression according to a partial mapping.
|
| Constructor and Description |
|---|
RelFieldTrimmer.TrimResult(RelNode left,
Mapping right)
Creates a TrimResult.
|
| 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.
|
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. |
static class |
Mappings.PartialMapping
A mapping where a source has at most one target, and every target has at
most one source.
|
| Modifier and Type | Method and Description |
|---|---|
static Mapping |
Mappings.bijection(List<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 |
AbstractTargetMapping.inverse() |
Mapping |
AbstractSourceMapping.inverse() |
Mapping |
Mappings.SourceMapping.inverse() |
Mapping |
Mappings.TargetMapping.inverse() |
Mapping |
Mappings.PartialMapping.inverse() |
Mapping |
Mappings.IdentityMapping.inverse() |
Mapping |
Mappings.OverridingSourceMapping.inverse() |
Mapping |
Mappings.OverridingTargetMapping.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 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.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.