it.sistematica.isharedoc.opencmis.lucene.query
Class LuceneQueryProcessor
java.lang.Object
it.sistematica.isharedoc.opencmis.lucene.query.LuceneQueryProcessor
public class LuceneQueryProcessor
- extends java.lang.Object
A processor for a CMIS query for the In-Database server. During tree
traversal conditions are checked against the data contained in the central
hash map with all objects. In a first pass one time setup is performed, in a
custom walk across the query expression tree an object is checked if it
matches. In case of a match it is appended to a list of matching objects.
Method Summary |
void |
processQueryAndCatchExc(java.lang.String statement,
org.apache.chemistry.opencmis.server.support.TypeManager tm)
|
org.apache.chemistry.opencmis.commons.data.ObjectList |
query(org.apache.chemistry.opencmis.server.support.TypeManager tm,
ObjectStore objectStore,
java.lang.String user,
java.lang.String repositoryId,
java.lang.String statement,
java.lang.Boolean searchAllVersions,
java.lang.Boolean includeAllowableActions,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
java.lang.String renditionFilter,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
Main entry function to process a query from discovery service |
static java.lang.String |
translatePattern(java.lang.String wildcardString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneQueryProcessor
public LuceneQueryProcessor(SearchService service)
query
public org.apache.chemistry.opencmis.commons.data.ObjectList query(org.apache.chemistry.opencmis.server.support.TypeManager tm,
ObjectStore objectStore,
java.lang.String user,
java.lang.String repositoryId,
java.lang.String statement,
java.lang.Boolean searchAllVersions,
java.lang.Boolean includeAllowableActions,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
java.lang.String renditionFilter,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
- Main entry function to process a query from discovery service
processQueryAndCatchExc
public void processQueryAndCatchExc(java.lang.String statement,
org.apache.chemistry.opencmis.server.support.TypeManager tm)
translatePattern
public static java.lang.String translatePattern(java.lang.String wildcardString)