Package com.db4o.internal.btree
Class BTreeRangeSingle
- java.lang.Object
-
- com.db4o.internal.btree.BTreeRangeSingle
-
- All Implemented Interfaces:
BTreeRange
public class BTreeRangeSingle extends java.lang.Object implements BTreeRange
-
-
Field Summary
Fields Modifier and Type Field Description static Comparison4
COMPARISON
-
Constructor Summary
Constructors Constructor Description BTreeRangeSingle(Transaction transaction, BTree btree, BTreePointer first, BTreePointer end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(BTreeRangeVisitor visitor)
boolean
adjacent(BTreeRangeSingle range)
BTreePointer
end()
BTreeRange
extendToFirst()
BTreeRange
extendToLast()
BTreeRange
extendToLastOf(BTreeRange range)
BTreePointer
first()
BTreeRange
greater()
BTreeRange
intersect(BTreeRange range)
boolean
isEmpty()
Iterator4
keys()
BTreePointer
lastPointer()
BTreeRangeSingle
newBTreeRangeSingle(BTreePointer first, BTreePointer end)
BTreeRange
newEmptyRange()
boolean
overlaps(BTreeRangeSingle range)
Iterator4
pointers()
Iterates through all the valid pointers in this range.int
size()
BTreeRange
smaller()
java.lang.String
toString()
Transaction
transaction()
BTreeRange
union(BTreeRange other)
-
-
-
Field Detail
-
COMPARISON
public static final Comparison4 COMPARISON
-
-
Constructor Detail
-
BTreeRangeSingle
public BTreeRangeSingle(Transaction transaction, BTree btree, BTreePointer first, BTreePointer end)
-
-
Method Detail
-
accept
public void accept(BTreeRangeVisitor visitor)
- Specified by:
accept
in interfaceBTreeRange
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceBTreeRange
-
size
public int size()
- Specified by:
size
in interfaceBTreeRange
-
pointers
public Iterator4 pointers()
Description copied from interface:BTreeRange
Iterates through all the valid pointers in this range.- Specified by:
pointers
in interfaceBTreeRange
- Returns:
- an Iterator4 over BTreePointer value
-
keys
public Iterator4 keys()
- Specified by:
keys
in interfaceBTreeRange
-
end
public final BTreePointer end()
-
transaction
public Transaction transaction()
-
first
public BTreePointer first()
-
greater
public BTreeRange greater()
- Specified by:
greater
in interfaceBTreeRange
-
union
public BTreeRange union(BTreeRange other)
- Specified by:
union
in interfaceBTreeRange
-
adjacent
public boolean adjacent(BTreeRangeSingle range)
-
overlaps
public boolean overlaps(BTreeRangeSingle range)
-
extendToFirst
public BTreeRange extendToFirst()
- Specified by:
extendToFirst
in interfaceBTreeRange
-
extendToLast
public BTreeRange extendToLast()
- Specified by:
extendToLast
in interfaceBTreeRange
-
smaller
public BTreeRange smaller()
- Specified by:
smaller
in interfaceBTreeRange
-
newBTreeRangeSingle
public BTreeRangeSingle newBTreeRangeSingle(BTreePointer first, BTreePointer end)
-
newEmptyRange
public BTreeRange newEmptyRange()
-
intersect
public BTreeRange intersect(BTreeRange range)
- Specified by:
intersect
in interfaceBTreeRange
-
extendToLastOf
public BTreeRange extendToLastOf(BTreeRange range)
- Specified by:
extendToLastOf
in interfaceBTreeRange
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
lastPointer
public BTreePointer lastPointer()
- Specified by:
lastPointer
in interfaceBTreeRange
-
-