org.kie.uberfire.metadata.backend.lucene.index
Class BaseLuceneIndex
java.lang.Object
org.kie.uberfire.metadata.backend.lucene.index.BaseLuceneIndex
- All Implemented Interfaces:
- LuceneIndex, Index
- Direct Known Subclasses:
- DirectoryLuceneIndex
public abstract class BaseLuceneIndex
- extends Object
- implements LuceneIndex
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseLuceneIndex
public BaseLuceneIndex()
indexDocument
public void indexDocument(String id,
org.apache.lucene.document.Document doc)
- Specified by:
indexDocument in interface LuceneIndex
deleteIfExists
public boolean deleteIfExists(String... docIds)
- Specified by:
deleteIfExists in interface LuceneIndex
rename
public void rename(String sourceId,
org.apache.lucene.document.Document doc)
- Specified by:
rename in interface LuceneIndex
lookupDocIdByPK
protected int[] lookupDocIdByPK(org.apache.lucene.search.IndexSearcher searcher,
String... ids)
throws IOException
- Throws:
IOException
writer
public abstract org.apache.lucene.index.IndexWriter writer()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.