public class ReadOnlyKeysRaba extends AbstractRaba
nulls but supports
search.| Modifier and Type | Field and Description |
|---|---|
static ReadOnlyKeysRaba |
EMPTY
A read-only empty keys raba.
|
a, capacity, fromIndex, toIndex| Constructor and Description |
|---|
ReadOnlyKeysRaba(byte[][] a)
Create a view of a byte[][].
|
ReadOnlyKeysRaba(int size,
byte[][] a)
Create a view of a byte[][].
|
ReadOnlyKeysRaba(int fromIndex,
int toIndex,
byte[][] a)
Create a view of a
byte[][] slice. |
ReadOnlyKeysRaba(int fromIndex,
int toIndex,
int capacity,
byte[][] a)
Create a view from a slice of a byte[][].
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
assertTotalOrder(int fromIndex,
int toIndex,
byte[][] a)
Asserts that the
unsigned byte[]s in the logical byte[][]
are in a total order. |
boolean |
isKeys()
For B+Tree keys (does not allow
nulls, is searchable). |
boolean |
isReadOnly()
This view is read-only.
|
add, add, add, assertNotFull, assertNotReadOnly, assertNullAllowed, capacity, copy, get, isEmpty, isFull, isNull, iterator, length, rangeCheck, resize, search, set, size, toString, toStringpublic static final transient ReadOnlyKeysRaba EMPTY
public ReadOnlyKeysRaba(byte[][] a)
a - The backing byte[][].public ReadOnlyKeysRaba(int size,
byte[][] a)
size-1 are assumed to have valid data.size - The #of elements with valid data.a - The backing byte[][].public ReadOnlyKeysRaba(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 ReadOnlyKeysRaba(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[][].public final boolean isReadOnly()
public final boolean isKeys()
nulls, is searchable).true if the IRaba represents B+Tree keys and
false if it represents B+Tree values.protected boolean assertTotalOrder(int fromIndex,
int toIndex,
byte[][] a)
unsigned byte[]s in the logical byte[][]
are in a total order.fromIndex - The first index in the view (inclusive lower bound).toIndex - The first index outside the view (exclusive upper bound).a - The backing byte[][].Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.