T
- the type returned by the iteratorpublic abstract class AbstractIterator<T> extends Object implements Iterator<T>
Iterator
implementation.Modifier | Constructor and Description |
---|---|
protected |
AbstractIterator(long skipCount,
AbstractPageFetcher<T> pageFetcher)
Construct
|
Modifier and Type | Method and Description |
---|---|
protected AbstractPageFetcher.Page<T> |
getCurrentPage()
Gets the current page of items within collection
|
boolean |
getHasMoreItems() |
long |
getPageNumItems() |
long |
getPosition() |
protected long |
getSkipCount()
Gets current skip count
|
protected int |
getSkipOffset()
Gets current skip offset (from skip count)
|
long |
getTotalNumItems() |
protected AbstractPageFetcher.Page<T> |
incrementPage()
Skip to the next page of items within collection
|
protected int |
incrementSkipOffset()
Increment the skip offset by one
|
void |
remove() |
protected AbstractIterator(long skipCount, AbstractPageFetcher<T> pageFetcher)
skipCount
- pageFetcher
- public long getPosition()
public long getPageNumItems()
public long getTotalNumItems()
public boolean getHasMoreItems()
protected long getSkipCount()
protected int getSkipOffset()
protected int incrementSkipOffset()
protected AbstractPageFetcher.Page<T> getCurrentPage()
protected AbstractPageFetcher.Page<T> incrementPage()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.