Package org.irods.irods4j.high_level.vfs
Class IRODSCollectionIterator
java.lang.Object
org.irods.irods4j.high_level.vfs.IRODSCollectionIterator
- All Implemented Interfaces:
Iterable<CollectionEntry>
A class which makes it easy to iterate over the contents of a collection.
Instances of this class do not visit subcollections.
- Since:
- 0.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe class providing the iterator implementation over a collection.static enumOptions which affect the behavior of the iterator. -
Constructor Summary
ConstructorsConstructorDescriptionIRODSCollectionIterator(IRODSApi.RcComm comm, String logicalPath) Initializes a newly created iterator.IRODSCollectionIterator(IRODSApi.RcComm comm, String logicalPath, int rowsPerPage) Initializes a newly created iterator.IRODSCollectionIterator(IRODSApi.RcComm comm, String logicalPath, int rowsPerPage, IRODSCollectionIterator.CollectionOptions options) Initializes a newly created iterator.IRODSCollectionIterator(IRODSApi.RcComm comm, String logicalPath, IRODSCollectionIterator.CollectionOptions options) Initializes a newly created iterator. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the max number of rows a single page may contain.iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IRODSCollectionIterator
public IRODSCollectionIterator(IRODSApi.RcComm comm, String logicalPath) throws IRODSFilesystemException, IOException, IRODSException Initializes a newly created iterator.- Parameters:
comm- The connection to the iRODS server.logicalPath- The absolute path to a collection.- Throws:
IRODSExceptionIOExceptionIRODSFilesystemExceptionIllegalArgumentException- If invalid inputs are passed.- Since:
- 0.1.0
-
IRODSCollectionIterator
public IRODSCollectionIterator(IRODSApi.RcComm comm, String logicalPath, int rowsPerPage) throws IRODSFilesystemException, IOException, IRODSException Initializes a newly created iterator.- Parameters:
comm- The connection to the iRODS server.logicalPath- The absolute path to a collection.rowsPerPage- The max number of rows to fetch when a new page of data is needed.- Throws:
IRODSExceptionIOExceptionIRODSFilesystemExceptionIllegalArgumentException- If invalid inputs are passed.- Since:
- 0.1.0
-
IRODSCollectionIterator
public IRODSCollectionIterator(IRODSApi.RcComm comm, String logicalPath, IRODSCollectionIterator.CollectionOptions options) throws IRODSFilesystemException, IOException, IRODSException Initializes a newly created iterator.- Parameters:
comm- The connection to the iRODS server.logicalPath- The absolute path to a collection.options- Options affecting the behavior of the iterator. Currently unused.- Throws:
IRODSExceptionIOExceptionIRODSFilesystemException- Since:
- 0.1.0
-
IRODSCollectionIterator
public IRODSCollectionIterator(IRODSApi.RcComm comm, String logicalPath, int rowsPerPage, IRODSCollectionIterator.CollectionOptions options) throws IRODSFilesystemException, IOException, IRODSException Initializes a newly created iterator.- Parameters:
comm- The connection to the iRODS server.logicalPath- The absolute path to a collection.rowsPerPage- The max number of rows to fetch when a new page of data is needed.options- Options affecting the behavior of the iterator. Currently unused.- Throws:
IRODSExceptionIOExceptionIRODSFilesystemException- Since:
- 0.1.0
-
-
Method Details
-
getRowsPerPage
public int getRowsPerPage()Returns the max number of rows a single page may contain.- Since:
- 0.1.0
-
iterator
- Specified by:
iteratorin interfaceIterable<CollectionEntry>
-