Package com.db4o.internal.btree
Class BTreePointer
- java.lang.Object
-
- com.db4o.internal.btree.BTreePointer
-
public final class BTreePointer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BTreePointer(Transaction transaction, ByteArrayBuffer nodeReader, BTreeNode node, int index)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BTreePointer y)voidcopyTo(BTreePointer target)static booleanequals(BTreePointer x, BTreePointer y)booleanequals(java.lang.Object obj)inthashCode()intindex()booleanisValid()java.lang.Objectkey()static booleanlessThan(BTreePointer x, BTreePointer y)static BTreePointermax(BTreePointer x, BTreePointer y)static BTreePointermin(BTreePointer x, BTreePointer y)BTreePointernext()BTreeNodenode()BTreePointerprevious()BTreePointershallowClone()java.lang.StringtoString()BTreePointerunsafeFastNext()Duplicate code of next(), reusing this BTreePointer without creating a new BTreePointer, very dangerous to call because there may be side effects if this BTreePointer is used elsewhere and code relies on state the stay the same.
-
-
-
Constructor Detail
-
BTreePointer
public BTreePointer(Transaction transaction, ByteArrayBuffer nodeReader, BTreeNode node, int index)
-
-
Method Detail
-
max
public static BTreePointer max(BTreePointer x, BTreePointer y)
-
min
public static BTreePointer min(BTreePointer x, BTreePointer y)
-
shallowClone
public BTreePointer shallowClone()
-
copyTo
public void copyTo(BTreePointer target)
-
index
public final int index()
-
node
public final BTreeNode node()
-
key
public final java.lang.Object key()
-
next
public BTreePointer next()
-
unsafeFastNext
public BTreePointer unsafeFastNext()
Duplicate code of next(), reusing this BTreePointer without creating a new BTreePointer, very dangerous to call because there may be side effects if this BTreePointer is used elsewhere and code relies on state the stay the same.
-
previous
public BTreePointer previous()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(BTreePointer y)
-
lessThan
public static boolean lessThan(BTreePointer x, BTreePointer y)
-
equals
public static boolean equals(BTreePointer x, BTreePointer y)
-
isValid
public boolean isValid()
-
-