Package org.apache.solr.store.hdfs
Class HdfsDirectory
- java.lang.Object
-
- org.apache.lucene.store.Directory
-
- org.apache.lucene.store.BaseDirectory
-
- org.apache.solr.store.hdfs.HdfsDirectory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
@Deprecated public class HdfsDirectory extends org.apache.lucene.store.BaseDirectory
Deprecated.since 8.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HdfsDirectory.HdfsIndexInput
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.hadoop.conf.Configuration
configuration
Deprecated.static int
DEFAULT_BUFFER_SIZE
Deprecated.protected org.apache.hadoop.fs.Path
hdfsDirPath
Deprecated.
-
Constructor Summary
Constructors Constructor Description HdfsDirectory(org.apache.hadoop.fs.Path hdfsDirPath, org.apache.hadoop.conf.Configuration configuration)
Deprecated.HdfsDirectory(org.apache.hadoop.fs.Path hdfsDirPath, org.apache.lucene.store.LockFactory lockFactory, org.apache.hadoop.conf.Configuration configuration, int bufferSize)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.org.apache.lucene.store.IndexOutput
createOutput(String name, org.apache.lucene.store.IOContext context)
Deprecated.org.apache.lucene.store.IndexOutput
createTempOutput(String prefix, String suffix, org.apache.lucene.store.IOContext context)
Deprecated.void
deleteFile(String name)
Deprecated.boolean
equals(Object obj)
Deprecated.long
fileLength(String name)
Deprecated.long
fileModified(String name)
Deprecated.org.apache.hadoop.conf.Configuration
getConfiguration()
Deprecated.org.apache.hadoop.fs.FileSystem
getFileSystem()
Deprecated.org.apache.hadoop.fs.Path
getHdfsDirPath()
Deprecated.Set<String>
getPendingDeletions()
Deprecated.int
hashCode()
Deprecated.boolean
isClosed()
Deprecated.Check whether this directory is open or closed.String[]
listAll()
Deprecated.org.apache.lucene.store.IndexInput
openInput(String name, org.apache.lucene.store.IOContext context)
Deprecated.void
rename(String source, String dest)
Deprecated.void
sync(Collection<String> names)
Deprecated.void
syncMetaData()
Deprecated.String
toString()
Deprecated.
-
-
-
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
-
close
public void close() throws IOException
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classorg.apache.lucene.store.Directory
- Throws:
IOException
-
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 classorg.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 classorg.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 classorg.apache.lucene.store.Directory
- Throws:
IOException
-
deleteFile
public void deleteFile(String name) throws IOException
Deprecated.- Specified by:
deleteFile
in classorg.apache.lucene.store.Directory
- Throws:
IOException
-
rename
public void rename(String source, String dest) throws IOException
Deprecated.- Specified by:
rename
in classorg.apache.lucene.store.Directory
- Throws:
IOException
-
syncMetaData
public void syncMetaData() throws IOException
Deprecated.- Specified by:
syncMetaData
in classorg.apache.lucene.store.Directory
- Throws:
IOException
-
fileLength
public long fileLength(String name) throws IOException
Deprecated.- Specified by:
fileLength
in classorg.apache.lucene.store.Directory
- Throws:
IOException
-
fileModified
public long fileModified(String name) throws IOException
Deprecated.- Throws:
IOException
-
listAll
public String[] listAll() throws IOException
Deprecated.- Specified by:
listAll
in classorg.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 classorg.apache.lucene.store.Directory
-
sync
public void sync(Collection<String> names) throws IOException
Deprecated.- Specified by:
sync
in classorg.apache.lucene.store.Directory
- Throws:
IOException
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classorg.apache.lucene.store.BaseDirectory
-
-