org.apache.chemistry.opencmis.inmemory.query
Class InMemoryQueryProcessor
java.lang.Object
org.apache.chemistry.opencmis.inmemory.query.InMemoryQueryProcessor
public class InMemoryQueryProcessor
- extends 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,
String user,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount)
|
protected int |
compareTo(PropertyDefinition<?> td,
PropertyData<?> lVal,
Object rVal)
|
void |
processQueryAndCatchExc(String statement)
|
ObjectList |
query(TypeManager tm,
ObjectStore objectStore,
String user,
String repositoryId,
String statement,
Boolean searchAllVersions,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount)
Main entry function to process a query from discovery service |
static String |
translatePattern(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,
String user,
String repositoryId,
String statement,
Boolean searchAllVersions,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount)
- Main entry function to process a query from discovery service
processQueryAndCatchExc
public void processQueryAndCatchExc(String statement)
buildResultList
public ObjectList buildResultList(TypeManager tm,
String user,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount)
compareTo
protected int compareTo(PropertyDefinition<?> td,
PropertyData<?> lVal,
Object rVal)
translatePattern
public static String translatePattern(String wildcardString)
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.