Record Class LmdbPageCardinalityEstimator.IndexShape

java.lang.Object
java.lang.Record
org.eclipse.rdf4j.sail.lmdb.estimate.LmdbPageCardinalityEstimator.IndexShape
Enclosing class:
LmdbPageCardinalityEstimator

public static record LmdbPageCardinalityEstimator.IndexShape(int prefixLength, int prefixComponentMask, int residualFieldCount) extends Record
Precomputed description of how one logical statement-pattern shape maps to one physical LMDB index layout. Components in prefixComponentMask form the contiguous B-tree range; the remaining bound components are residual predicates checked by the matcher.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IndexShape(int prefixLength, int prefixComponentMask, int residualFieldCount)
    Creates an instance of a IndexShape record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the prefixComponentMask record component.
    int
    Returns the value of the prefixLength record component.
    long
    rangeContext(long context)
     
    long
    rangeObject(long object)
     
    long
    rangePredicate(long predicate)
     
    long
    rangeSubject(long subject)
     
    int
    Returns the value of the residualFieldCount record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • IndexShape

      public IndexShape(int prefixLength, int prefixComponentMask, int residualFieldCount)
      Creates an instance of a IndexShape record class.
      Parameters:
      prefixLength - the value for the prefixLength record component
      prefixComponentMask - the value for the prefixComponentMask record component
      residualFieldCount - the value for the residualFieldCount record component
  • Method Details

    • rangeSubject

      public long rangeSubject(long subject)
    • rangePredicate

      public long rangePredicate(long predicate)
    • rangeObject

      public long rangeObject(long object)
    • rangeContext

      public long rangeContext(long context)
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • prefixLength

      public int prefixLength()
      Returns the value of the prefixLength record component.
      Returns:
      the value of the prefixLength record component
    • prefixComponentMask

      public int prefixComponentMask()
      Returns the value of the prefixComponentMask record component.
      Returns:
      the value of the prefixComponentMask record component
    • residualFieldCount

      public int residualFieldCount()
      Returns the value of the residualFieldCount record component.
      Returns:
      the value of the residualFieldCount record component