Record Class HttpScanPushdown

java.lang.Object
java.lang.Record
com.darkcollective.relix.plan.HttpScanPushdown
Record Components:
limit - the row count folded from an adjacent λ, bound to the declared paginate limit parameter; empty when none was pushed
equalities - IN-column name to the literal value folded from an σ equality on it; empty when none was pushed. The connector maps each column to its declared binding (a query parameter or path segment).

public record HttpScanPushdown(Optional<Long> limit, Map<String,String> equalities) extends Record
What a PhysicalNode.Scan over an HTTP source has folded into its request — a query λ bound to the source's declared paginate limit, and σ equalities bound to the source's IN columns (a query parameter or a path segment).

Both are pure optimizations: the engine λ and σ that produced them stay in the plan above the scan, so a server that ignores a page-size parameter, clamps it, or does not filter still yields the right answer — the request fetches fewer rows, and the engine operators are the backstop that guarantees the result. Nothing here can change what a query returns; it can only change how much is fetched over the wire.

  • Constructor Details

    • HttpScanPushdown

      public HttpScanPushdown(Optional<Long> limit, Map<String,String> equalities)
      Creates an instance of a HttpScanPushdown record class.
      Parameters:
      limit - the value for the limit record component
      equalities - the value for the equalities record component
  • Method Details

    • withLimit

      public HttpScanPushdown withLimit(long count)
      Returns this pushdown with count as the folded limit.
      Returns:
      this pushdown with count as the folded limit
    • withEqualities

      public HttpScanPushdown withEqualities(Map<String,String> more)
      Returns this pushdown with more equalities added to any already folded.
      Returns:
      this pushdown with more equalities added to any already folded
    • none

      public static HttpScanPushdown none()
      The empty pushdown — nothing folded.
    • 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.
    • limit

      public Optional<Long> limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component
    • equalities

      public Map<String,String> equalities()
      Returns the value of the equalities record component.
      Returns:
      the value of the equalities record component