public class OracleJdbcDirectory
extends org.apache.lucene.store.Directory
implements org.apache.lucene.store.MultiDeleteDirectory
| Constructor and Description |
|---|
OracleJdbcDirectory(OraclePool pool,
String tableName)
Creates a new Oracle directory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearLock(String name) |
void |
close()
Closes the directory.
|
void |
configureFileEntrySettings() |
void |
create()
Creates a new database table.
|
org.apache.lucene.store.IndexOutput |
createOutput(String name,
org.apache.lucene.store.IOContext context) |
void |
delete()
Deletes the database table (drops it) from the database.
|
void |
delete(oracle.jdbc.OracleConnection conn)
Deletes the database table (drops it) from the database.
|
void |
deleteContent()
Deletes the contents of the database, except for the commit and write lock.
|
void |
deleteFile(String name) |
List |
deleteFiles(List names)
Deletes the given file names.
|
boolean |
fileExists(String name) |
long |
fileLength(String name) |
void |
flushDelBatch() |
void |
flushFileInBatch(String name) |
void |
flushFilesBatch() |
void |
forceDeleteFile(String name) |
int |
getAddBatchSize() |
Vector<String> |
getDelBatch() |
int |
getDelBatchSize() |
OracleIndexFile |
getDocInBatch(String name) |
JdbcFileEntrySettings |
getFileEntrySettings(String name) |
Map<String,OracleIndexFile> |
getFilesBatch() |
org.apache.lucene.store.LockFactory |
getLockFactory() |
OraclePool |
getOraclePool() |
JdbcDirectorySettings |
getSettings() |
String |
getTableName() |
boolean |
isDelBatchEmpty() |
boolean |
isDelBatchFull() |
boolean |
isDocinBatch(String name) |
boolean |
isFilesBatchEmpty() |
boolean |
isFilesBatchFull() |
String[] |
listAll() |
org.apache.lucene.store.Lock |
makeLock(String name) |
org.apache.lucene.store.IndexInput |
openInput(String name,
org.apache.lucene.store.IOContext context) |
void |
setAddBatchSize(int size) |
void |
setDelBatch(Vector<String> files) |
void |
setDelBatchSize(int size) |
void |
setFilesBatch(Map<String,OracleIndexFile> files) |
void |
setLockFactory(org.apache.lucene.store.LockFactory f) |
void |
sync(Collection<String> names) |
boolean |
tableExists()
Returns
true if the database table exists. |
boolean |
tableExists(oracle.jdbc.OracleConnection conn) |
String |
toString() |
public OracleJdbcDirectory(OraclePool pool, String tableName) throws SQLException
JdbcDirectorySettings using it's default values.pool - The data source to usetableName - The table nameOracleIndexExceptionSQLExceptionpublic void clearLock(String name)
clearLock in class org.apache.lucene.store.Directorypublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.DirectoryIOExceptionpublic void configureFileEntrySettings()
public void create()
throws IOException
IOExceptionpublic org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
createOutput in class org.apache.lucene.store.DirectoryIOExceptionpublic void delete()
throws IOException
IOExceptionpublic void delete(oracle.jdbc.OracleConnection conn)
throws IOException
IOExceptionpublic void deleteContent()
throws IOException
IOExceptionpublic void deleteFile(String name) throws IOException
deleteFile in class org.apache.lucene.store.DirectoryIOExceptionpublic List deleteFiles(List names) throws IOException
MultiDeleteDirectorydeleteFiles in interface org.apache.lucene.store.MultiDeleteDirectoryIOExceptionpublic boolean fileExists(String name) throws IOException
fileExists in class org.apache.lucene.store.DirectoryIOExceptionpublic long fileLength(String name) throws IOException
fileLength in class org.apache.lucene.store.DirectoryIOExceptionpublic void flushDelBatch()
public void flushFileInBatch(String name)
public void flushFilesBatch()
public void forceDeleteFile(String name) throws IOException
IOExceptionpublic int getAddBatchSize()
public int getDelBatchSize()
public OracleIndexFile getDocInBatch(String name)
public JdbcFileEntrySettings getFileEntrySettings(String name)
public Map<String,OracleIndexFile> getFilesBatch()
public org.apache.lucene.store.LockFactory getLockFactory()
getLockFactory in class org.apache.lucene.store.Directorypublic OraclePool getOraclePool()
public JdbcDirectorySettings getSettings()
public String getTableName()
public boolean isDelBatchEmpty()
public boolean isDelBatchFull()
public boolean isDocinBatch(String name)
public boolean isFilesBatchEmpty()
public boolean isFilesBatchFull()
public String[] listAll() throws IOException
listAll in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.Lock makeLock(String name)
makeLock in class org.apache.lucene.store.Directorypublic org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
openInput in class org.apache.lucene.store.DirectoryIOExceptionpublic void setAddBatchSize(int size)
public void setDelBatchSize(int size)
public void setFilesBatch(Map<String,OracleIndexFile> files)
public void setLockFactory(org.apache.lucene.store.LockFactory f)
setLockFactory in class org.apache.lucene.store.Directorypublic void sync(Collection<String> names) throws IOException
sync in class org.apache.lucene.store.DirectoryIOExceptionpublic boolean tableExists()
throws IOException,
UnsupportedOperationException,
SQLException
true if the database table exists.true if the database table exists,
false otherwiseIOExceptionUnsupportedOperationException - If the database dialect does not
support itSQLExceptionpublic boolean tableExists(oracle.jdbc.OracleConnection conn)
throws IOException,
UnsupportedOperationException,
SQLException
public String toString()
toString in class org.apache.lucene.store.DirectoryCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.