public abstract class AbstractKeyBuffer extends Object implements IRaba
Constructor and Description |
---|
AbstractKeyBuffer() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
_binarySearch(int searchKeyOffset,
byte[] searchKey)
Binary search.
|
protected abstract int |
_linearSearch(int searchKeyOffset,
byte[] searchKey)
Linear search.
|
protected abstract int |
_prefixMatchLength(int prefixLength,
byte[] searchKey)
Test the search key against the leading prefix shared by all bytes in the
key buffer.
|
abstract byte[] |
getPrefix()
Return the largest leading prefix shared by all keys.
|
abstract int |
getPrefixLength()
The length of the leading prefix shared by all keys.
|
Iterator<byte[]> |
iterator()
Iterator visits the byte[] elements in the view order.
|
protected abstract int _prefixMatchLength(int prefixLength, byte[] searchKey)
prefixLength
- The length of the prefix shared by all keys in the buffer.searchKey
- The search key.protected abstract int _linearSearch(int searchKeyOffset, byte[] searchKey)
protected abstract int _binarySearch(int searchKeyOffset, byte[] searchKey)
public Iterator<byte[]> iterator()
IRaba
null
, then the iterator will report a null
for
that element.public abstract byte[] getPrefix()
public abstract int getPrefixLength()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.