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()
Returns whether the repository contains additional items beyond the page
of items already fetched.
|
ItemIterable<T> |
getPage()
Gets an iterable for the current sub collection within the CMIS
collection using default maximum number of items.
|
ItemIterable<T> |
getPage(int maxNumItems)
Gets an iterable for the current sub collection within the CMIS
collection.
|
protected AbstractPageFetcher<T> |
getPageFetcher()
Gets the page fetcher
|
long |
getPageNumItems()
Returns the number of items fetched for the current page.
|
protected long |
getSkipCount()
Gets the skip count
|
long |
getTotalNumItems()
Returns the total number of items.
|
AbstractIterator<T> |
iterator() |
ItemIterable<T> |
skipTo(long position)
Skips to position within CMIS collection.
|
protected 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)
ItemIterableskipTo in interface ItemIterable<T>thispublic ItemIterable<T> getPage()
ItemIterablegetPage in interface ItemIterable<T>public ItemIterable<T> getPage(int maxNumItems)
ItemIterablegetPage in interface ItemIterable<T>maxNumItems - maximum number of items the sub collection will containpublic long getPageNumItems()
ItemIterablegetPageNumItems in interface ItemIterable<T>public boolean getHasMoreItems()
ItemIterablegetHasMoreItems in interface ItemIterable<T>public long getTotalNumItems()
ItemIterablegetTotalNumItems in interface ItemIterable<T>Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.