public class RewriteSpatialPartitioningAggregation extends Object implements Rule<AggregationNode>
- Aggregation: spatial_partitioning(geometry)
- source
becomes
- Aggregation: spatial_partitioning(envelope, partition_count)
- Project: envelope := ST_Envelope(geometry)
- source
, where partition_count is the value of session property hash_partition_countRule.Context, Rule.Result| Constructor and Description |
|---|
RewriteSpatialPartitioningAggregation(Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
Rule.Result |
apply(AggregationNode node,
Captures captures,
Rule.Context context) |
Pattern<AggregationNode> |
getPattern()
Returns a pattern to which plan nodes this rule applies.
|
public RewriteSpatialPartitioningAggregation(Metadata metadata)
public Pattern<AggregationNode> getPattern()
RulegetPattern in interface Rule<AggregationNode>public Rule.Result apply(AggregationNode node, Captures captures, Rule.Context context)
apply in interface Rule<AggregationNode>Copyright © 2012–2019. All rights reserved.