|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.search.content.interceptors.AbstractVisitor
org.xcmis.search.content.interceptors.CommandInterceptor
org.xcmis.search.content.interceptors.QueryableIndexStorage
org.xcmis.search.lucene.AbstractLuceneQueryableIndexStorage
public abstract class AbstractLuceneQueryableIndexStorage
Base implementation of Lucene based QueryableIndexStorage.
| Field Summary | |
|---|---|
protected IndexConfiguration |
indexConfuguration
Index configuration. |
protected static int |
MAX_FETCH_SIZE
The upper limit for the initial fetch size. |
protected NameConverter |
nameConverter
Convert one Sting name to other String name. |
protected LuceneIndexer |
nodeIndexer
Node indexer. |
protected PathSplitter |
pathSplitter
Split path string to names. |
protected VirtualTableResolver |
tableResolver
Reselve selector names to lucene querys. |
| Fields inherited from class org.xcmis.search.content.interceptors.QueryableIndexStorage |
|---|
serviceConfuguration |
| Constructor Summary | |
|---|---|
AbstractLuceneQueryableIndexStorage(SearchServiceConfiguration serviceConfiguration)
|
|
| Method Summary | |
|---|---|
org.apache.lucene.search.Query |
getConstrainQuery(Constraint constraint,
Map<String,Object> bindVariablesValues)
|
protected abstract org.apache.lucene.index.IndexReader |
getIndexReader()
Different lucene storage's should override this method. |
protected abstract Object |
save(LuceneIndexTransaction indexTransaction)
|
Object |
visitExecuteSelectorCommand(InvocationContext ctx,
ExecuteSelectorCommand command)
|
Object |
visitModifyIndexCommand(InvocationContext ctx,
ModifyIndexCommand command)
|
| Methods inherited from class org.xcmis.search.content.interceptors.CommandInterceptor |
|---|
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext, start, stop |
| Methods inherited from class org.xcmis.search.content.interceptors.AbstractVisitor |
|---|
visitChildEntriesCommand, visitGetContentEntryCommand, visitGetUnfiledEntriesCommand, visitProcessQueryCommand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int MAX_FETCH_SIZE
protected final NameConverter nameConverter
protected final PathSplitter pathSplitter
protected final VirtualTableResolver tableResolver
protected LuceneIndexer nodeIndexer
protected IndexConfiguration indexConfuguration
| Constructor Detail |
|---|
public AbstractLuceneQueryableIndexStorage(SearchServiceConfiguration serviceConfiguration)
throws IndexException
serviceConfiguration -
IndexException
IndexConfigurationException
IndexException| Method Detail |
|---|
public org.apache.lucene.search.Query getConstrainQuery(Constraint constraint,
Map<String,Object> bindVariablesValues)
throws VisitException,
IndexException
VisitException
IndexException
public Object visitExecuteSelectorCommand(InvocationContext ctx,
ExecuteSelectorCommand command)
throws Throwable
visitExecuteSelectorCommand in interface VisitorvisitExecuteSelectorCommand in class QueryableIndexStorageThrowableQueryableIndexStorage.visitExecuteSelectorCommand(org.xcmis.search.content.command.InvocationContext,
org.xcmis.search.content.command.query.ExecuteSelectorCommand)
public Object visitModifyIndexCommand(InvocationContext ctx,
ModifyIndexCommand command)
throws Throwable
visitModifyIndexCommand in interface VisitorvisitModifyIndexCommand in class QueryableIndexStorageThrowableQueryableIndexStorage.visitModifyIndexCommand(org.xcmis.search.content.command.InvocationContext,
org.xcmis.search.content.command.index.ModifyIndexCommand)
protected abstract org.apache.lucene.index.IndexReader getIndexReader()
throws IndexException
IndexException
protected abstract Object save(LuceneIndexTransaction indexTransaction)
throws IndexException,
IndexTransactionException
indexTransaction -
IndexTransactionException
IndexException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||