public class LLUnambiguousIteratorImpl extends Object implements LowLevelIterator
| Constructor and Description |
|---|
LLUnambiguousIteratorImpl(LowLevelIterator it,
LowLevelCAS cas) |
| Modifier and Type | Method and Description |
|---|---|
Object |
copy()
Create a copy of this iterator.
|
boolean |
isValid()
Check if the iterator is currently valid.
|
int |
ll_get()
Return the current FS reference.
|
LowLevelIndex |
ll_getIndex()
Get the index for just the top most type of this iterator (excludes subtypes).
|
int |
ll_indexSize()
Return the size of the underlying index.
|
void |
moveTo(int fsRef)
Try to position the iterator so that the current element is greater than or equal to
fsRef, and previous elements are less than fsRef. |
void |
moveToFirst()
Move iterator to first FS in index.
|
void |
moveToLast()
Move iterator to last FS in index.
|
void |
moveToNext()
Advance the iterator.
|
void |
moveToPrevious()
Move the iterator back one position.
|
public LLUnambiguousIteratorImpl(LowLevelIterator it, LowLevelCAS cas)
public void moveToFirst()
LowLevelIteratorisValid() will succeed
iff the index is non-empty.moveToFirst in interface LowLevelIteratorpublic void moveToLast()
LowLevelIteratorisValid() will succeed
iff the index is non-empty.moveToLast in interface LowLevelIteratorpublic boolean isValid()
LowLevelIteratorisValid in interface LowLevelIteratortrue iff the iterator is valid.public int ll_get()
throws NoSuchElementException
LowLevelIteratorll_get in interface LowLevelIteratorNoSuchElementException - Iff the iterator is not valid.public void moveToNext()
LowLevelIteratormoveToNext in interface LowLevelIteratorpublic void moveToPrevious()
LowLevelIteratormoveToPrevious in interface LowLevelIteratorpublic void moveTo(int fsRef)
LowLevelIteratorfsRef, and previous elements are less than fsRef. This may
invalidate the iterator. If fsRef can not be compared to FSs in the index, the results are
undefined.moveTo in interface LowLevelIteratorfsRef - The FS reference the iterator should be set to.public Object copy()
LowLevelIteratorcopy in interface LowLevelIteratorpublic int ll_indexSize()
LowLevelIteratorll_indexSize in interface LowLevelIteratorpublic LowLevelIndex ll_getIndex()
LowLevelIteratorll_getIndex in interface LowLevelIteratorCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.