Record Class SoftBPlusTree.NodeSpace
java.lang.Object
java.lang.Record
org.infinispan.util.SoftBPlusTree.NodeSpace
- Enclosing class:
SoftBPlusTree<V>
A disk region descriptor: byte offset and allocated size.
-
Constructor Summary
ConstructorsConstructorDescriptionNodeSpace(long offset, short occupiedSpace) Creates an instance of aNodeSpacerecord 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.shortReturns the value of theoccupiedSpacerecord component.longoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NodeSpace
public NodeSpace(long offset, short occupiedSpace) Creates an instance of aNodeSpacerecord class.- Parameters:
offset- the value for theoffsetrecord componentoccupiedSpace- the value for theoccupiedSpacerecord component
-
-
Method Details
-
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. -
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
occupiedSpace
public short occupiedSpace()Returns the value of theoccupiedSpacerecord component.- Returns:
- the value of the
occupiedSpacerecord component
-