Class IndexedV1LocalFileSystem

  • All Implemented Interfaces:
    FileSystem

    public class IndexedV1LocalFileSystem
    extends IndexedLocalFileSystem
    IndexedLocalFileSystem implements a case-sensitive indexed filesystem which uses a shallow storage hierarchy with no restriction on file name or path length. This filesystem is identified by the existence of an index file (~index.dat) and recovery journal (~index.jrn).
    • Method Detail

      • fileIdChanged

        protected void fileIdChanged​(PropertyFile pfile,
                                     java.lang.String oldFileId)
                              throws java.io.IOException
        Description copied from class: LocalFileSystem
        Notification that FileID has been changed within propertyFile
        Overrides:
        fileIdChanged in class LocalFileSystem
        Throws:
        java.io.IOException
      • getItem

        public FolderItem getItem​(java.lang.String fileID)
                           throws java.io.IOException,
                                  java.lang.UnsupportedOperationException
        Description copied from interface: FileSystem
        Returns the FolderItem specified by its unique File-ID
        Specified by:
        getItem in interface FileSystem
        Overrides:
        getItem in class LocalFileSystem
        Parameters:
        fileID - the items unique file ID
        Returns:
        the FolderItem with the given folderPath and name, or null if it doesn't exist.
        Throws:
        java.io.IOException - if IO error occurs.
        java.lang.UnsupportedOperationException - if file-system does not support this operation
      • rebuild

        public static boolean rebuild​(java.io.File rootDir)
                               throws java.io.IOException
        Completely rebuild filesystem index using item information contained within indexed property files. Empty folders will be lost.
        Parameters:
        rootDir -
        Throws:
        java.io.IOException