public class CollectionListRange extends CollectionAbstract
CollectionAbstract.DateSorter, CollectionAbstract.MyStreamFilter
auxInfo, CATALOG, collectionName, dateExtractor, DIR, FILE, GLOB, lastModified, LIST, logger, NCX_SUFFIX, protoChoice, root, sfilter, startCollection
Constructor and Description |
---|
CollectionListRange(java.lang.String collectionName,
java.lang.String root,
CalendarDate startDate,
CalendarDate endDate,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
addFile(MFile mfile) |
void |
close()
Close and release any resources.
|
CalendarDate |
getEndDate() |
CloseableIterator<MFile> |
getFileIterator()
Get the current collection of MFile, no guaranteed order.
|
java.lang.Iterable<MFile> |
getFilesSorted()
Get the current collection of MFile.
|
CalendarDate |
getStartDate() |
java.lang.String |
toString() |
cleanName, extractDate, getAuxInfo, getCollectionName, getFilenames, getIndexFilename, getLastModified, getLatestFile, getPartitionDate, getProtoIndex, getRoot, hasDateExtractor, makeFileListSorted, open, parseOlderThanString, putAuxInfo, setDateExtractor, setRoot, setStreamFilter
public CollectionListRange(java.lang.String collectionName, java.lang.String root, CalendarDate startDate, CalendarDate endDate, org.slf4j.Logger logger)
public CalendarDate getStartDate()
public CalendarDate getEndDate()
public void addFile(MFile mfile)
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
public java.lang.String toString()
toString
in class java.lang.Object