Package thredds.inventory.partition
Class FilePartition
- java.lang.Object
-
- thredds.inventory.CollectionAbstract
-
- thredds.inventory.partition.DirectoryCollection
-
- thredds.inventory.partition.FilePartition
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,MCollection
,PartitionManager
public class FilePartition extends DirectoryCollection implements PartitionManager
A Partition consisting of single files, each is a GribCollection. This FilePartition represents the collection of the GribCollections. Eg how we store files on motherlode.- Since:
- 12/9/13
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class thredds.inventory.partition.DirectoryCollection
DirectoryCollection.Visitor
-
Nested classes/interfaces inherited from class thredds.inventory.CollectionAbstract
CollectionAbstract.DateSorter, CollectionAbstract.MyStreamFilter
-
-
Field Summary
-
Fields inherited from class thredds.inventory.CollectionAbstract
auxInfo, CATALOG, collectionName, dateExtractor, DIR, FILE, GLOB, lastModified, LIST, logger, protoChoice, root, sfilter, startCollection
-
-
Constructor Summary
Constructors Constructor Description FilePartition(String topCollectionName, Path topDir, boolean isTop, String olderThan, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<MCollection>
makePartitions(CollectionUpdateType forceCollection)
void
removePartition(MCollection partition)
-
Methods inherited from class thredds.inventory.partition.DirectoryCollection
close, getFileIterator, getFilesSorted, getIndexFilename, getRoot, iterateOverMFileCollection, makeCollectionIndexPath, makeCollectionName
-
Methods inherited from class thredds.inventory.CollectionAbstract
cleanName, extractDate, getAuxInfo, getCollectionName, getFilenames, getLastModified, getLatestFile, getPartitionDate, getProtoIndex, hasDateExtractor, makeFileListSorted, open, parseOlderThanString, putAuxInfo, setDateExtractor, setRoot, setStreamFilter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface thredds.inventory.MCollection
close, extractDate, getAuxInfo, getCollectionName, getFileIterator, getFilenames, getFilesSorted, getIndexFilename, getLastModified, getLatestFile, getPartitionDate, getProtoIndex, getRoot, hasDateExtractor, putAuxInfo
-
-
-
-
Method Detail
-
makePartitions
public Iterable<MCollection> makePartitions(CollectionUpdateType forceCollection) throws IOException
- Specified by:
makePartitions
in interfacePartitionManager
- Throws:
IOException
-
removePartition
public void removePartition(MCollection partition)
- Specified by:
removePartition
in interfacePartitionManager
-
-