Package com.db4o.internal.btree
Class BTreeRangeUnion
- java.lang.Object
-
- com.db4o.internal.btree.BTreeRangeUnion
-
- All Implemented Interfaces:
BTreeRange
public class BTreeRangeUnion extends java.lang.Object implements BTreeRange
-
-
Constructor Summary
Constructors Constructor Description BTreeRangeUnion(SortedCollection4 sorted)
BTreeRangeUnion(BTreeRangeSingle[] ranges)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(BTreeRangeVisitor visitor)
BTreeRange
extendToFirst()
BTreeRange
extendToLast()
BTreeRange
extendToLastOf(BTreeRange upperRange)
BTreeRange
greater()
BTreeRange
intersect(BTreeRange range)
boolean
isEmpty()
Iterator4
keys()
BTreePointer
lastPointer()
Iterator4
pointers()
Iterates through all the valid pointers in this range.Iterator4
ranges()
int
size()
BTreeRange
smaller()
BTreeRange
union(BTreeRange other)
-
-
-
Constructor Detail
-
BTreeRangeUnion
public BTreeRangeUnion(BTreeRangeSingle[] ranges)
-
BTreeRangeUnion
public BTreeRangeUnion(SortedCollection4 sorted)
-
-
Method Detail
-
accept
public void accept(BTreeRangeVisitor visitor)
- Specified by:
accept
in interfaceBTreeRange
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceBTreeRange
-
extendToFirst
public BTreeRange extendToFirst()
- Specified by:
extendToFirst
in interfaceBTreeRange
-
extendToLast
public BTreeRange extendToLast()
- Specified by:
extendToLast
in interfaceBTreeRange
-
extendToLastOf
public BTreeRange extendToLastOf(BTreeRange upperRange)
- Specified by:
extendToLastOf
in interfaceBTreeRange
-
greater
public BTreeRange greater()
- Specified by:
greater
in interfaceBTreeRange
-
intersect
public BTreeRange intersect(BTreeRange range)
- Specified by:
intersect
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
-
size
public int size()
- Specified by:
size
in interfaceBTreeRange
-
smaller
public BTreeRange smaller()
- Specified by:
smaller
in interfaceBTreeRange
-
union
public BTreeRange union(BTreeRange other)
- Specified by:
union
in interfaceBTreeRange
-
ranges
public Iterator4 ranges()
-
lastPointer
public BTreePointer lastPointer()
- Specified by:
lastPointer
in interfaceBTreeRange
-
-