|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.raba.AbstractRaba
com.bigdata.btree.raba.ReadOnlyValuesRaba
public class ReadOnlyValuesRaba
Immutable implementation allows nulls but does not support
search.
| Field Summary | |
|---|---|
static ReadOnlyValuesRaba |
EMPTY
A read-only empty values raba. |
| Fields inherited from class com.bigdata.btree.raba.AbstractRaba |
|---|
a, capacity, fromIndex, toIndex |
| Constructor Summary | |
|---|---|
ReadOnlyValuesRaba(byte[][] a)
Create a view of a byte[][]. |
|
ReadOnlyValuesRaba(int size,
byte[][] a)
Create a view of a byte[][]. |
|
ReadOnlyValuesRaba(int fromIndex,
int toIndex,
byte[][] a)
Create a view of a byte[][] slice. |
|
ReadOnlyValuesRaba(int fromIndex,
int toIndex,
int capacity,
byte[][] a)
Create a view from a slice of a byte[][]. |
|
| Method Summary | |
|---|---|
boolean |
isKeys()
No. |
boolean |
isReadOnly()
This view is read-only. |
| Methods inherited from class com.bigdata.btree.raba.AbstractRaba |
|---|
add, add, add, assertNotFull, assertNotReadOnly, assertNullAllowed, capacity, copy, get, isEmpty, isFull, isNull, iterator, length, rangeCheck, resize, search, set, size, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final transient ReadOnlyValuesRaba EMPTY
| Constructor Detail |
|---|
public ReadOnlyValuesRaba(byte[][] a)
a - The backing byte[][].
public ReadOnlyValuesRaba(int size,
byte[][] a)
size-1 are assumed to have valid data.
size - The #of elements with valid data.a - The backing byte[][].
public ReadOnlyValuesRaba(int fromIndex,
int toIndex,
byte[][] a)
byte[][] slice. The slice will include
only those elements between the fromIndex and the toIndex. The capacity
will be the #of elements. AbstractRaba.isFull() will report true
.
Note: This constructor is used when we split an
IKeyArrayIndexProcedure based on a key-range partitioned index.
fromIndex - The index of the first visible in the view (inclusive lower
bound).toIndex - The index of the first element beyond the view (exclusive
upper bound). If toIndex == fromIndex then the view is empty.a - The backing byte[][].
public ReadOnlyValuesRaba(int fromIndex,
int toIndex,
int capacity,
byte[][] a)
fromIndex - The index of the first element in the byte[][] which is
visible in the view (inclusive lower bound).toIndex - The index of the first element in the byte[][] which lies
beyond the view (exclusive upper bound).capacity - The #of elements which may be used in the view.a - The backing byte[][].| Method Detail |
|---|
public final boolean isReadOnly()
public final boolean isKeys()
true if the IRaba represents B+Tree keys and
false if it represents B+Tree values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||