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