org.apache.chemistry.opencmis.inmemory.query
Class InMemoryQueryProcessor
java.lang.Object
org.apache.chemistry.opencmis.inmemory.query.InMemoryQueryProcessor
public class InMemoryQueryProcessor
- extends java.lang.Object
A processor for a CMIS query for the In-Memory 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 |
ObjectList |
buildResultList(TypeManager tm,
java.lang.String user,
java.lang.Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
java.lang.String renditionFilter,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
|
protected int |
compareTo(PropertyDefinition<?> td,
java.lang.Object lValue,
java.lang.Object rVal)
|
void |
processQueryAndCatchExc(java.lang.String statement)
|
ObjectList |
query(TypeManager tm,
ObjectStore objectStore,
java.lang.String user,
java.lang.String repositoryId,
java.lang.String statement,
java.lang.Boolean searchAllVersions,
java.lang.Boolean includeAllowableActions,
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 |
InMemoryQueryProcessor
public InMemoryQueryProcessor()
query
public ObjectList query(TypeManager tm,
ObjectStore objectStore,
java.lang.String user,
java.lang.String repositoryId,
java.lang.String statement,
java.lang.Boolean searchAllVersions,
java.lang.Boolean includeAllowableActions,
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)
buildResultList
public ObjectList buildResultList(TypeManager tm,
java.lang.String user,
java.lang.Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
java.lang.String renditionFilter,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
compareTo
protected int compareTo(PropertyDefinition<?> td,
java.lang.Object lValue,
java.lang.Object rVal)
translatePattern
public static java.lang.String translatePattern(java.lang.String wildcardString)
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.