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
ConstructorsConstructorDescriptionIndexShape(int prefixLength, int prefixComponentMask, int residualFieldCount) Creates an instance of aIndexShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theprefixComponentMaskrecord component.intReturns the value of theprefixLengthrecord component.longrangeContext(long context) longrangeObject(long object) longrangePredicate(long predicate) longrangeSubject(long subject) intReturns the value of theresidualFieldCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IndexShape
public IndexShape(int prefixLength, int prefixComponentMask, int residualFieldCount) Creates an instance of aIndexShaperecord class.- Parameters:
prefixLength- the value for theprefixLengthrecord componentprefixComponentMask- the value for theprefixComponentMaskrecord componentresidualFieldCount- the value for theresidualFieldCountrecord 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
-
hashCode
-
equals
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 thecomparemethod from their corresponding wrapper classes. -
prefixLength
public int prefixLength()Returns the value of theprefixLengthrecord component.- Returns:
- the value of the
prefixLengthrecord component
-
prefixComponentMask
public int prefixComponentMask()Returns the value of theprefixComponentMaskrecord component.- Returns:
- the value of the
prefixComponentMaskrecord component
-
residualFieldCount
public int residualFieldCount()Returns the value of theresidualFieldCountrecord component.- Returns:
- the value of the
residualFieldCountrecord component
-