public final class PositionIterator extends Object implements Iterator<Position>, Iterable<Position>
WARNING: the Position instance returned by next() will always be the same reference. If you want to save positions as you are iterating, you should call Position.clone() on the returned position.
| Modifier and Type | Method and Description |
|---|---|
Position |
get()
Get the current position.
|
boolean |
hasNext()
Returns true if a next position exists.
|
PositionIterator |
iterator()
Implement iterator() to return self (for Iterable interface).
|
Position |
next() |
void |
remove() |
void |
seek(Position p)
Expert: Seek to a position.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic Position get()
NOTE: this is undefined until next() has been called the first time.
public void seek(Position p)
public PositionIterator iterator()
public boolean hasNext()
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.