public class CollectionList extends CollectionAbstract
CollectionAbstract.DateSorter, CollectionAbstract.MyStreamFilter
Modifier and Type | Field and Description |
---|---|
protected java.util.List<MFile> |
mfiles |
auxInfo, CATALOG, collectionName, dateExtractor, DIR, FILE, GLOB, lastModified, LIST, logger, NCX_SUFFIX, protoChoice, root, sfilter, startCollection
Modifier | Constructor and Description |
---|---|
protected |
CollectionList(java.lang.String collectionName,
org.slf4j.Logger logger) |
|
CollectionList(java.lang.String collectionName,
java.lang.String root,
java.util.List<MFile> mfiles,
org.slf4j.Logger logger) |
|
CollectionList(java.lang.String collectionName,
java.lang.String list,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close and release any resources.
|
CloseableIterator<MFile> |
getFileIterator()
Get the current collection of MFile, no guaranteed order.
|
java.lang.Iterable<MFile> |
getFilesSorted()
Get the current collection of MFile.
|
cleanName, extractDate, getAuxInfo, getCollectionName, getFilenames, getIndexFilename, getLastModified, getLatestFile, getPartitionDate, getProtoIndex, getRoot, hasDateExtractor, makeFileListSorted, open, parseOlderThanString, putAuxInfo, setDateExtractor, setRoot, setStreamFilter
protected java.util.List<MFile> mfiles
public CollectionList(java.lang.String collectionName, java.lang.String list, org.slf4j.Logger logger)
public CollectionList(java.lang.String collectionName, java.lang.String root, java.util.List<MFile> mfiles, org.slf4j.Logger logger)
protected CollectionList(java.lang.String collectionName, org.slf4j.Logger logger)
public java.lang.Iterable<MFile> getFilesSorted()
MCollection
public CloseableIterator<MFile> getFileIterator() throws java.io.IOException
MCollection
try (CloseableIteratoriter = getFileIterator()) { while (iter.hasNext()) { MFile file = iter.next(); } }
java.io.IOException
public void close()
MCollection