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(WritableAbstractDatabaseIndex 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(WritableAbstractDatabaseIndex index) throws IOException
IOException
public void addDocument(org.apache.lucene.document.Document doc) throws IOException
addDocument
in interface LuceneIndexWriter
IOException
public void addDocuments(int numDocs, Iterable<org.apache.lucene.document.Document> documents) throws IOException
addDocuments
in interface LuceneIndexWriter
IOException
public void updateDocument(org.apache.lucene.index.Term term, org.apache.lucene.document.Document doc) throws IOException
updateDocument
in interface LuceneIndexWriter
IOException
public void deleteDocuments(org.apache.lucene.search.Query query) throws IOException
deleteDocuments
in interface LuceneIndexWriter
IOException
public void deleteDocuments(org.apache.lucene.index.Term term) throws IOException
deleteDocuments
in interface LuceneIndexWriter
IOException
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.