public class NoOpFileEntryHandler extends java.lang.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(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. |
public void close()
throws java.io.IOException
close in interface FileEntryHandlerjava.io.IOExceptionpublic void configure(OracleJdbcDirectory jdbcDirectory)
OracleJdbcDirectory initialization process.configure in interface FileEntryHandler
public 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.createOutput in interface FileEntryHandlername - The name of the fileIndexOutput to write the file contentsjava.io.IOException
public void deleteFile(java.lang.String name)
throws java.io.IOException
deleteFile in interface FileEntryHandlername - The name of the file to deletejava.io.IOException
public java.util.List<java.lang.String> deleteFiles(java.util.List<java.lang.String> names)
throws java.io.IOException
deleteFiles in interface FileEntryHandlernames - The list of file names to deletenull if all were deleted)java.io.IOException
public boolean fileExists(java.lang.String name)
throws java.io.IOException
fileExists in interface FileEntryHandlername - The name of the filetrue of the file exists, false if it does not.java.io.IOException
public long fileLength(java.lang.String name)
throws java.io.IOException
fileLength in interface FileEntryHandlername - The name of the filejava.io.IOException
public 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.openInput in interface FileEntryHandlername - 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.