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(java.lang.String name, org.apache.lucene.store.IOContext context)
Creates an
IndexOutput in order to write the file contents. |
void |
deleteFile(java.lang.String name)
Deletes the given file name.
|
java.util.List<java.lang.String> |
deleteFiles(java.util.List<java.lang.String> names)
Deletes a list of files.
|
boolean |
fileExists(java.lang.String name)
Checks if the file exists for the given file name.
|
long |
fileLength(java.lang.String name)
Returns the length of the file (in bytes).
|
org.apache.lucene.store.IndexInput |
openInput(java.lang.String name, org.apache.lucene.store.IOContext context)
Opens an
IndexInput in order to read the file contents. |
void close()
throws java.io.IOException
java.io.IOExceptionvoid configure(OracleJdbcDirectory jdbcDirectory)
OracleJdbcDirectory initialization process.
org.apache.lucene.store.IndexOutput createOutput(java.lang.String name,
org.apache.lucene.store.IOContext context)
throws java.io.IOException
IndexOutput in order to write the file contents.name - The name of the fileIndexOutput to write the file contentsjava.io.IOException
void deleteFile(java.lang.String name)
throws java.io.IOException
name - The name of the file to deletejava.io.IOException
java.util.List<java.lang.String> deleteFiles(java.util.List<java.lang.String> names)
throws java.io.IOException
names - The list of file names to deletenull if all were deleted)java.io.IOException
boolean fileExists(java.lang.String name)
throws java.io.IOException
name - The name of the filetrue of the file exists, false if it does not.java.io.IOException
long fileLength(java.lang.String name)
throws java.io.IOException
name - The name of the filejava.io.IOException
org.apache.lucene.store.IndexInput openInput(java.lang.String name,
org.apache.lucene.store.IOContext context)
throws java.io.IOException
IndexInput in order to read the file contents.name - The name of the fileIndexInput in order to read the file contents.java.io.IOExceptionCopyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.