public class OracleIndexWriter
extends org.apache.lucene.index.IndexWriter
Constructor and Description |
---|
OracleIndexWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.IndexWriterConfig config)
Creates a new OracleIndexWriter from a given directory and configuration
|
OracleIndexWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.IndexWriterConfig config, int commitBatchSize)
Creates a new OracleIndexWriter from a given directory and configuration
|
Modifier and Type | Method and Description |
---|---|
void |
addToIndexedDocs(long number)
Increments the number of documents indexed by this object
|
long |
getNumberIndexedDocs()
Gets the current number of documents indexed using this object
|
boolean |
isCommitRequired()
Verifies if a commit of the index is required as the number of documents indexed matches the commit size
|
boolean |
isDataUncommited()
Verifies if there are documents that have not been commited
|
void |
setIndexedDocs(long number)
Sets the number of documents indexed by this object to the given number
|
abortMerges, addDocument, addDocument, addDocuments, addDocuments, addIndexes, addIndexes, close, close, commit, deleteAll, deleteDocuments, deleteDocuments, deleteUnusedFiles, forceMerge, forceMerge, forceMergeDeletes, forceMergeDeletes, getAnalyzer, getCommitData, getConfig, getDirectory, getMergingSegments, getNextMerge, hasDeletions, hasPendingMerges, hasUncommittedChanges, isLocked, maxDoc, maybeMerge, merge, numDeletedDocs, numDocs, numRamDocs, prepareCommit, ramBytesUsed, ramSizeInBytes, rollback, segString, segString, segString, setCommitData, tryDeleteDocument, unlock, updateBinaryDocValue, updateDocument, updateDocument, updateDocuments, updateDocuments, updateDocValues, updateNumericDocValue, waitForMerges
public OracleIndexWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.IndexWriterConfig config) throws java.io.IOException
directory
- a Directory
object where the index is stored.config
- an IndexWriterConfig
object denoting the index configuration such as buffer size, etc.java.io.IOException
public OracleIndexWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.IndexWriterConfig config, int commitBatchSize) throws java.io.IOException
directory
- a Directory
object where the index is stored.config
- an IndexWriterConfig
object denoting the index configuration such as buffer size, etc.commitBatchSize
- a positive integer denoting the number of documents to index before forcing a commit over the Lucene index.java.io.IOException
public void addToIndexedDocs(long number)
number
- a positive integer with the number of documents indexedpublic long getNumberIndexedDocs()
public boolean isCommitRequired()
public boolean isDataUncommited()
public void setIndexedDocs(long number)
number
- a positive integer with the number of documents indexedCopyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.