org.nuxeo.ecm.core.api
Class DocumentModelsChunk
java.lang.Object
org.nuxeo.ecm.core.api.DocumentModelsChunk
- All Implemented Interfaces:
- java.io.Serializable
public class DocumentModelsChunk
- extends java.lang.Object
- implements java.io.Serializable
A list of DocumentModels representing a chunk of a larger result, usually
retrieved as an iterator. The role of this chunk is to group a small piece
of the entire result to be fetched at once.
- Author:
- Dragos Mihalache
- See Also:
- Serialized Form
Field Summary |
boolean |
hasMore
Tells if there are more results to come after the current chunk. |
int |
lastIndex
Last index of non-filtered elements list. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lastIndex
public final int lastIndex
- Last index of non-filtered elements list. This is the offset (in the
query/initial result) from where the next chunk will be constructed.
hasMore
public final boolean hasMore
- Tells if there are more results to come after the current chunk.
getSize
public int getSize()
- Returns:
- the number of elements from this chunk
getItem
public DocumentModel getItem(int i)
- Returns:
- the element at position i
remove
public void remove(int pos)
getMax
public long getMax()
- Returns:
- the maximum number of items that could be retrieved from the source
Copyright © 2010 Nuxeo SAS. All Rights Reserved.