public class NoOpFileEntryHandler extends Object implements FileEntryHandler
OracleJdbcDirectory directory under Lucene
4.5.| Constructor and Description |
|---|
NoOpFileEntryHandler() |
| 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. |
public void close()
throws IOException
close in interface FileEntryHandlerIOExceptionpublic void configure(OracleJdbcDirectory jdbcDirectory)
OracleJdbcDirectory
initialization process.configure in interface FileEntryHandlerpublic org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
IndexOutput in order to write the file contents.createOutput in interface FileEntryHandlername - The name of the fileIndexOutput to write the file contentsIOExceptionpublic void deleteFile(String name) throws IOException
deleteFile in interface FileEntryHandlername - The name of the file to deleteIOExceptionpublic List<String> deleteFiles(List<String> names) throws IOException
deleteFiles in interface FileEntryHandlernames - The list of file names to deletenull if all were deleted)IOExceptionpublic boolean fileExists(String name) throws IOException
fileExists in interface FileEntryHandlername - The name of the filetrue of the file exists, false if it does not.IOExceptionpublic long fileLength(String name) throws IOException
fileLength in interface FileEntryHandlername - The name of the fileIOExceptionpublic org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
IndexInput in order to read the file contents.openInput in interface FileEntryHandlername - The name of the fileIndexInput in order to read the file contents.IOExceptionCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.