Class RewriteSpatialPartitioningAggregation

  • All Implemented Interfaces:
    Rule<AggregationNode>

    public class RewriteSpatialPartitioningAggregation
    extends Object
    implements Rule<AggregationNode>
    Re-writes spatial_partitioning(geometry) aggregations into spatial_partitioning(envelope, partition_count) on top of ST_Envelope(geometry) projection, e.g.
     - 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_count