public class PartitionedIndexWriter extends Object implements LuceneIndexWriter
Writer threats partition as writable if partition has number of live and deleted documents that is less then configured
MAXIMUM_PARTITION_SIZE.
First observable partition that satisfy writer criteria is used for writing.
| Constructor and Description |
|---|
PartitionedIndexWriter(WritableDatabaseSchemaIndex index) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(org.apache.lucene.document.Document doc) |
void |
addDocuments(int numDocs,
Iterable<org.apache.lucene.document.Document> documents) |
void |
deleteDocuments(org.apache.lucene.search.Query query) |
void |
deleteDocuments(org.apache.lucene.index.Term term) |
void |
updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document doc) |
public PartitionedIndexWriter(WritableDatabaseSchemaIndex index) throws IOException
IOExceptionpublic void addDocument(org.apache.lucene.document.Document doc)
throws IOException
addDocument in interface LuceneIndexWriterIOExceptionpublic void addDocuments(int numDocs,
Iterable<org.apache.lucene.document.Document> documents)
throws IOException
addDocuments in interface LuceneIndexWriterIOExceptionpublic void updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document doc)
throws IOException
updateDocument in interface LuceneIndexWriterIOExceptionpublic void deleteDocuments(org.apache.lucene.search.Query query)
throws IOException
deleteDocuments in interface LuceneIndexWriterIOExceptionpublic void deleteDocuments(org.apache.lucene.index.Term term)
throws IOException
deleteDocuments in interface LuceneIndexWriterIOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.