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()
LowLevelIterator
isValid()
will succeed
iff the index is non-empty.moveToFirst
in interface LowLevelIterator
public void moveToLast()
LowLevelIterator
isValid()
will succeed
iff the index is non-empty.moveToLast
in interface LowLevelIterator
public boolean isValid()
LowLevelIterator
isValid
in interface LowLevelIterator
true
iff the iterator is valid.public int ll_get() throws NoSuchElementException
LowLevelIterator
ll_get
in interface LowLevelIterator
NoSuchElementException
- Iff the iterator is not valid.public void moveToNext()
LowLevelIterator
moveToNext
in interface LowLevelIterator
public void moveToPrevious()
LowLevelIterator
moveToPrevious
in interface LowLevelIterator
public void moveTo(int fsRef)
LowLevelIterator
fsRef
, 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 LowLevelIterator
fsRef
- The FS reference the iterator should be set to.public Object copy()
LowLevelIterator
copy
in interface LowLevelIterator
public int ll_indexSize()
LowLevelIterator
ll_indexSize
in interface LowLevelIterator
public LowLevelIndex ll_getIndex()
LowLevelIterator
ll_getIndex
in interface LowLevelIterator
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.