KIE Uberfure Metadata Lucene Backend 6.2.0.Beta2

org.kie.uberfire.metadata.backend.lucene.index
Class BaseLuceneIndex

java.lang.Object
  extended by 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


Field Summary
 
Fields inherited from interface org.kie.uberfire.metadata.backend.lucene.index.LuceneIndex
CUSTOM_FIELD_FILENAME
 
Constructor Summary
BaseLuceneIndex()
           
 
Method Summary
 boolean deleteIfExists(String... docIds)
           
 void indexDocument(String id, org.apache.lucene.document.Document doc)
           
protected  int[] lookupDocIdByPK(org.apache.lucene.search.IndexSearcher searcher, String... ids)
           
 void rename(String sourceId, org.apache.lucene.document.Document doc)
           
abstract  org.apache.lucene.index.IndexWriter writer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kie.uberfire.metadata.backend.lucene.index.LuceneIndex
nrtReader, nrtRelease, nrtRelease, nrtSearcher
 
Methods inherited from interface org.kie.uberfire.metadata.engine.Index
commit, delete, dispose, freshIndex, getCluster
 

Constructor Detail

BaseLuceneIndex

public BaseLuceneIndex()
Method Detail

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()

KIE Uberfure Metadata Lucene Backend 6.2.0.Beta2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.