public class IndexSearchResultIteratorImpl extends Object implements IndexSearchResultIteratorCollection
Constructor and Description |
---|
IndexSearchResultIteratorImpl(List<Key> keys,
KeyNameMapper keyNameMapper) |
Modifier and Type | Method and Description |
---|---|
KeyNameMapper |
getKeyNameMapper()
Maps from field names to key indexes
|
List<Key> |
getKeys()
Gets a list of keys contained in the iterator
|
boolean |
hasNext() |
boolean |
isEmpty()
If the result is empty
|
Iterator<Key> |
iterator() |
Key |
next() |
void |
remove() |
void |
reset()
Resets the index result iterator
|
int |
size()
The amount of results found in the index
|
List<Key> |
subset(int start,
int limit)
Gets a subset of the collection of keys in the iterator
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
forEachRemaining
public IndexSearchResultIteratorImpl(List<Key> keys, KeyNameMapper keyNameMapper)
public List<Key> subset(int start, int limit)
IndexSearchResultIteratorCollection
subset
in interface IndexSearchResultIteratorCollection
start
- THe start of the subsetlimit
- The maximum amount to put in the subsetpublic List<Key> getKeys()
IndexSearchResultIteratorCollection
getKeys
in interface IndexSearchResultIteratorCollection
public KeyNameMapper getKeyNameMapper()
IndexSearchResultIterator
getKeyNameMapper
in interface IndexSearchResultIterator
public int size()
IndexSearchResultIterator
size
in interface IndexSearchResultIterator
public boolean isEmpty()
IndexSearchResultIterator
isEmpty
in interface IndexSearchResultIterator
public void reset()
IndexSearchResultIterator
reset
in interface IndexSearchResultIterator
Copyright © 2015. All rights reserved.