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 nameOracleIndexException
SQLException
public void clearLock(String name)
clearLock
in class org.apache.lucene.store.Directory
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.lucene.store.Directory
IOException
public void configureFileEntrySettings()
public void create() throws IOException
IOException
public org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
createOutput
in class org.apache.lucene.store.Directory
IOException
public void delete() throws IOException
IOException
public void delete(oracle.jdbc.OracleConnection conn) throws IOException
IOException
public void deleteContent() throws IOException
IOException
public void deleteFile(String name) throws IOException
deleteFile
in class org.apache.lucene.store.Directory
IOException
public List deleteFiles(List names) throws IOException
MultiDeleteDirectory
deleteFiles
in interface org.apache.lucene.store.MultiDeleteDirectory
IOException
public boolean fileExists(String name) throws IOException
fileExists
in class org.apache.lucene.store.Directory
IOException
public long fileLength(String name) throws IOException
fileLength
in class org.apache.lucene.store.Directory
IOException
public void flushDelBatch()
public void flushFileInBatch(String name)
public void flushFilesBatch()
public void forceDeleteFile(String name) throws IOException
IOException
public 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.Directory
public 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.Directory
IOException
public org.apache.lucene.store.Lock makeLock(String name)
makeLock
in class org.apache.lucene.store.Directory
public org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
openInput
in class org.apache.lucene.store.Directory
IOException
public 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.Directory
public void sync(Collection<String> names) throws IOException
sync
in class org.apache.lucene.store.Directory
IOException
public boolean tableExists() throws IOException, UnsupportedOperationException, SQLException
true
if the database table exists.true
if the database table exists,
false
otherwiseIOException
UnsupportedOperationException
- If the database dialect does not
support itSQLException
public boolean tableExists(oracle.jdbc.OracleConnection conn) throws IOException, UnsupportedOperationException, SQLException
public String toString()
toString
in class org.apache.lucene.store.Directory
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.