public class DelegateBTree extends DelegateIndex implements ILinearList
IIndex
and ILinearList
interfaces.Constructor and Description |
---|
DelegateBTree(BTree btree) |
DelegateBTree(ILinearList ndx) |
Modifier and Type | Method and Description |
---|---|
long |
indexOf(byte[] key)
Lookup the index position of the key.
|
byte[] |
keyAt(long index)
Return the key for the identified entry.
|
byte[] |
valueAt(long index)
Return the value for the identified entry.
|
contains, contains, getCounter, getCounters, getIndexMetadata, getResourceMetadata, insert, insert, lookup, lookup, putIfAbsent, rangeCount, rangeCount, rangeCountExact, rangeCountExactWithDeleted, rangeIterator, rangeIterator, rangeIterator, remove, remove, submit, submit, submit, toString
public DelegateBTree(ILinearList ndx)
public DelegateBTree(BTree btree)
public long indexOf(byte[] key)
ILinearList
Note that ILinearList.indexOf(byte[])
is the basis for implementing the
IRangeQuery
interface.
indexOf
in interface ILinearList
key
- The key.(-(insertion point) - 1)
. The insertion point is
defined as the point at which the key would be found it it were
inserted into the btree without intervening mutations. Note that
this guarantees that the return value will be >= 0 if and only if
the key is found. When found the index will be in [0:nentries).
Adding or removing entries in the tree may invalidate the index.
pos = -(pos+1)
will convert an insertion point to
the index at which the key would be found if it were
inserted - this is also the index of the predecessor of key
in the index.
ILinearList.keyAt(long)
,
ILinearList.valueAt(long)
public byte[] keyAt(long index)
ILinearList
ISimpleBTree.lookup(byte[])
.keyAt
in interface ILinearList
index
- The index position of the entry (origin zero).ILinearList.indexOf(byte[])
,
ILinearList.valueAt(long)
public byte[] valueAt(long index)
ILinearList
ISimpleBTree.lookup(byte[])
.valueAt
in interface ILinearList
index
- The index position of the entry (origin zero).null
if
there is a deleted entry at that index position thenILinearList.indexOf(byte[])
,
ILinearList.keyAt(long)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.