Class HdfsDirectory

    • Field Detail

      • DEFAULT_BUFFER_SIZE

        public static final int DEFAULT_BUFFER_SIZE
        Deprecated.
        See Also:
        Constant Field Values
      • hdfsDirPath

        protected final org.apache.hadoop.fs.Path hdfsDirPath
        Deprecated.
      • configuration

        protected final org.apache.hadoop.conf.Configuration configuration
        Deprecated.
    • Constructor Detail

      • HdfsDirectory

        public HdfsDirectory​(org.apache.hadoop.fs.Path hdfsDirPath,
                             org.apache.hadoop.conf.Configuration configuration)
                      throws IOException
        Deprecated.
        Throws:
        IOException
      • HdfsDirectory

        public HdfsDirectory​(org.apache.hadoop.fs.Path hdfsDirPath,
                             org.apache.lucene.store.LockFactory lockFactory,
                             org.apache.hadoop.conf.Configuration configuration,
                             int bufferSize)
                      throws IOException
        Deprecated.
        Throws:
        IOException
    • Method Detail

      • isClosed

        public boolean isClosed()
        Deprecated.
        Check whether this directory is open or closed. This check may return stale results in the form of false negatives.
        Returns:
        true if the directory is definitely closed, false if the directory is open or is pending closure
      • createOutput

        public org.apache.lucene.store.IndexOutput createOutput​(String name,
                                                                org.apache.lucene.store.IOContext context)
                                                         throws IOException
        Deprecated.
        Specified by:
        createOutput in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • createTempOutput

        public org.apache.lucene.store.IndexOutput createTempOutput​(String prefix,
                                                                    String suffix,
                                                                    org.apache.lucene.store.IOContext context)
                                                             throws IOException
        Deprecated.
        Specified by:
        createTempOutput in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • openInput

        public org.apache.lucene.store.IndexInput openInput​(String name,
                                                            org.apache.lucene.store.IOContext context)
                                                     throws IOException
        Deprecated.
        Specified by:
        openInput in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • deleteFile

        public void deleteFile​(String name)
                        throws IOException
        Deprecated.
        Specified by:
        deleteFile in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • rename

        public void rename​(String source,
                           String dest)
                    throws IOException
        Deprecated.
        Specified by:
        rename in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • syncMetaData

        public void syncMetaData()
                          throws IOException
        Deprecated.
        Specified by:
        syncMetaData in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • fileLength

        public long fileLength​(String name)
                        throws IOException
        Deprecated.
        Specified by:
        fileLength in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • listAll

        public String[] listAll()
                         throws IOException
        Deprecated.
        Specified by:
        listAll in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • getHdfsDirPath

        public org.apache.hadoop.fs.Path getHdfsDirPath()
        Deprecated.
      • getFileSystem

        public org.apache.hadoop.fs.FileSystem getFileSystem()
        Deprecated.
      • getConfiguration

        public org.apache.hadoop.conf.Configuration getConfiguration()
        Deprecated.
      • getPendingDeletions

        public Set<String> getPendingDeletions()
        Deprecated.
        Specified by:
        getPendingDeletions in class org.apache.lucene.store.Directory
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • toString

        public String toString()
        Deprecated.
        Overrides:
        toString in class org.apache.lucene.store.BaseDirectory