public interface RelDistribution extends RelMultipleTrait
TBD:
RelDistribution.Type.HASH_DISTRIBUTED
to HASH, etc.RelDistributions
.DEFAULT?RelDistributionTraitDef.convert(org.apache.calcite.plan.RelOptPlanner, org.apache.calcite.rel.RelNode, org.apache.calcite.rel.RelDistribution, boolean)
does not create specific physical operators as it does in Drill. Drill
will need to create rules; or we could allow "converters" to be
registered with the planner that are not trait-defs.
Modifier and Type | Interface and Description |
---|---|
static class |
RelDistribution.Type
Type of distribution.
|
Modifier and Type | Method and Description |
---|---|
RelDistribution |
apply(Mappings.TargetMapping mapping) |
java.util.List<java.lang.Integer> |
getKeys()
Returns the ordinals of the key columns.
|
RelDistribution.Type |
getType()
Returns the type of distribution.
|
isTop
@Nonnull RelDistribution.Type getType()
@Nonnull java.util.List<java.lang.Integer> getKeys()
Order is important for some types (RANGE); other types (HASH) consider it unimportant but impose an arbitrary order; other types (BROADCAST, SINGLETON) never have keys.
RelDistribution apply(Mappings.TargetMapping mapping)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.