Record Class DimensionFilterSplitter

Object
Record
DimensionFilterSplitter

public record DimensionFilterSplitter(DimensionBindingResolver bindings) extends Record
Splits a GeoTools filter into dimension-backed predicates and a residual post-filter. Recognized predicates on time, elevation, and additional dimensions are converted into DimensionFilter instances. All remaining predicates are preserved for in-memory evaluation during slice iteration.

The splitting process relies on a SplittingVisitor implementation that traverses the filter tree and identifies supported predicates. The resulting pre- and post-filters are collected into a SplitFilterResult which is then processed by a PreFilterDimensionExtractor to produce the final dimension filters and post-filter.

  • Constructor Details

    • DimensionFilterSplitter

      public DimensionFilterSplitter(DimensionBindingResolver bindings)
      Creates an instance of a DimensionFilterSplitter record class.
      Parameters:
      bindings - the value for the bindings record component
  • Method Details

    • split

      public SplitFilterResult split(Filter filter)
      Splits the filter into recognized dimension filters and a residual post-filter.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • bindings

      public DimensionBindingResolver bindings()
      Returns the value of the bindings record component.
      Returns:
      the value of the bindings record component