public class DirectoryPartition extends CollectionAbstract implements PartitionManager
CollectionAbstract.DateSorter, CollectionAbstract.MyStreamFilterauxInfo, CATALOG, collectionName, dateExtractor, DIR, FILE, GLOB, lastModified, LIST, logger, protoChoice, root, sfilter, startCollection| Constructor and Description | 
|---|
| DirectoryPartition(FeatureCollectionConfig config,
                  java.nio.file.Path collectionDir,
                  boolean isTop,
                  IndexReader indexReader,
                  java.lang.String suffix,
                  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. | 
| java.lang.String | getIndexFilename(java.lang.String suffix) | 
| java.lang.String | getRoot()Get common root directory of all MFiles in the collection - may be null | 
| java.lang.Iterable<MCollection> | makePartitions(CollectionUpdateType forceCollection) | 
| void | removePartition(MCollection partition) | 
cleanName, extractDate, getAuxInfo, getCollectionName, getFilenames, getLastModified, getLatestFile, getPartitionDate, getProtoIndex, hasDateExtractor, makeFileListSorted, open, parseOlderThanString, putAuxInfo, setDateExtractor, setRoot, setStreamFilterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextractDate, getAuxInfo, getCollectionName, getFilenames, getLastModified, getLatestFile, getPartitionDate, getProtoIndex, hasDateExtractor, putAuxInfopublic DirectoryPartition(FeatureCollectionConfig config, java.nio.file.Path collectionDir, boolean isTop, IndexReader indexReader, java.lang.String suffix, org.slf4j.Logger logger)
public java.lang.String getIndexFilename(java.lang.String suffix)
getIndexFilename in interface MCollectiongetIndexFilename in class CollectionAbstractpublic java.lang.Iterable<MCollection> makePartitions(CollectionUpdateType forceCollection) throws java.io.IOException
makePartitions in interface PartitionManagerjava.io.IOExceptionpublic java.lang.String getRoot()
MCollectiongetRoot in interface MCollectiongetRoot in class CollectionAbstractpublic java.lang.Iterable<MFile> getFilesSorted()
MCollectiongetFilesSorted in interface MCollectionpublic CloseableIterator<MFile> getFileIterator()
MCollectiontry (CloseableIteratoriter = getFileIterator()) { while (iter.hasNext()) { MFile file = iter.next(); } } 
getFileIterator in interface MCollectionpublic void close()
MCollectionclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface MCollectionpublic void removePartition(MCollection partition)
removePartition in interface PartitionManager