Class PartitionManagerFromIndexDirectory

    • Constructor Detail

    • Method Detail

      • getFilesSorted

        public Iterable<MFile> getFilesSorted()
        Description copied from interface: MCollection
        Get the current collection of MFile. if hasDateExtractor() == true, these will be sorted by Date, otherwise by path.
        Specified by:
        getFilesSorted in interface MCollection
        Returns:
        current collection of MFile as an Iterable.
      • getFileIterator

        public CloseableIterator<MFile> getFileIterator()
        Description copied from interface: MCollection
        Get the current collection of MFile, no guaranteed order. May be faster than getFilesSorted() for large collections, use when order is not important.
         try (CloseableIterator iter = getFileIterator()) {
           while (iter.hasNext()) {
             MFile file = iter.next();
           }
         }
         
        Specified by:
        getFileIterator in interface MCollection
        Returns:
        current collection of MFile as an CloseableIterator.