public interface FileEntryHandler
OracleJdbcDirectory directory under Lucene
4.5.
A file entry handler acts as a delegate to the OracleJdbcDirectory
for all "file" level operations. Allows the OracleJdbcDirectory to be
abstracted from any specific implementation details regarding a file entry,
and have several different file entries for different files or files groups.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the file entry handler.
|
void |
configure(OracleJdbcDirectory jdbcDirectory)
Called after the entry is created (during the
OracleJdbcDirectory
initialization process. |
org.apache.lucene.store.IndexOutput |
createOutput(String name,
org.apache.lucene.store.IOContext context)
Creates an
IndexOutput in order to write the file contents. |
void |
deleteFile(String name)
Deletes the given file name.
|
List<String> |
deleteFiles(List<String> names)
Deletes a list of files.
|
boolean |
fileExists(String name)
Checks if the file exists for the given file name.
|
long |
fileLength(String name)
Returns the length of the file (in bytes).
|
org.apache.lucene.store.IndexInput |
openInput(String name,
org.apache.lucene.store.IOContext context)
Opens an
IndexInput in order to read the file contents. |
void close()
throws IOException
IOExceptionvoid configure(OracleJdbcDirectory jdbcDirectory)
OracleJdbcDirectory
initialization process.org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
IndexOutput in order to write the file contents.name - The name of the fileIndexOutput to write the file contentsIOExceptionvoid deleteFile(String name) throws IOException
name - The name of the file to deleteIOExceptionList<String> deleteFiles(List<String> names) throws IOException
names - The list of file names to deletenull if all were deleted)IOExceptionboolean fileExists(String name) throws IOException
name - The name of the filetrue of the file exists, false if it does not.IOExceptionlong fileLength(String name) throws IOException
name - The name of the fileIOExceptionorg.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
IndexInput in order to read the file contents.name - The name of the fileIndexInput in order to read the file contents.IOExceptionCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.