Class TrackingTmpOutputDirectoryWrapper

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    final class TrackingTmpOutputDirectoryWrapper
    extends FilterDirectory
    • Field Detail

      • fileNames

        private final java.util.Map<java.lang.String,​java.lang.String> fileNames
    • Constructor Detail

      • TrackingTmpOutputDirectoryWrapper

        TrackingTmpOutputDirectoryWrapper​(Directory in)
    • Method Detail

      • createOutput

        public IndexOutput createOutput​(java.lang.String name,
                                        IOContext context)
                                 throws java.io.IOException
        Description copied from class: Directory
        Creates a new, empty file in the directory and returns an IndexOutput instance for appending data to this file. This method must throw FileAlreadyExistsException if the file already exists.
        Overrides:
        createOutput in class FilterDirectory
        Parameters:
        name - the name of the file to create.
        Throws:
        java.io.IOException - in case of I/O error
      • openInput

        public IndexInput openInput​(java.lang.String name,
                                    IOContext context)
                             throws java.io.IOException
        Description copied from class: Directory
        Opens a stream for reading an existing file. This method must throw either NoSuchFileException or FileNotFoundException if name points to a non-existing file.
        Overrides:
        openInput in class FilterDirectory
        Parameters:
        name - the name of an existing file.
        Throws:
        java.io.IOException - in case of I/O error
      • getTemporaryFiles

        public java.util.Map<java.lang.String,​java.lang.String> getTemporaryFiles()