T - the type returned by the iterable's iteratorpublic abstract class AbstractIterable<T> extends Object implements ItemIterable<T>
ItemIterable implementation.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIterable(AbstractPageFetcher<T> pageFetcher) |
protected |
AbstractIterable(long position,
AbstractPageFetcher<T> pageFetcher) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AbstractIterator<T> |
createIterator()
Construct the iterator
|
boolean |
getHasMoreItems() |
ItemIterable<T> |
getPage() |
ItemIterable<T> |
getPage(int maxNumItems) |
protected AbstractPageFetcher<T> |
getPageFetcher()
Gets the page fetcher
|
long |
getPageNumItems() |
protected long |
getSkipCount()
Gets the skip count
|
long |
getTotalNumItems() |
AbstractIterator<T> |
iterator() |
ItemIterable<T> |
skipTo(long position) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected AbstractIterable(AbstractPageFetcher<T> pageFetcher)
protected AbstractIterable(long position,
AbstractPageFetcher<T> pageFetcher)
protected long getSkipCount()
protected AbstractPageFetcher<T> getPageFetcher()
protected abstract AbstractIterator<T> createIterator()
public AbstractIterator<T> iterator()
public ItemIterable<T> skipTo(long position)
skipTo in interface ItemIterable<T>public ItemIterable<T> getPage()
getPage in interface ItemIterable<T>public ItemIterable<T> getPage(int maxNumItems)
getPage in interface ItemIterable<T>public long getPageNumItems()
getPageNumItems in interface ItemIterable<T>public boolean getHasMoreItems()
getHasMoreItems in interface ItemIterable<T>public long getTotalNumItems()
getTotalNumItems in interface ItemIterable<T>Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.