public interface QueryService
| Modifier and Type | Method and Description |
|---|---|
QueryResultList<? extends Representation> |
find(Query query)
Searches for entities based on the parsed
FieldQuery and returns
representations as defined by the selected fields of the query. |
QueryResultList<String> |
findReferences(Query query)
Searches for entities based on the parsed
FieldQuery and returns
the references (ids). |
QueryResultList<? extends Entity> |
findSigns(Query query)
Searches for Signs based on the parsed
FieldQuery and returns
the selected Signs including the whole representation. |
Collection<String> |
getSupportedQueryTypes()
Getter for the types of queries supported by this implementation.
|
QueryResultList<String> findReferences(Query query) throws IOException, UnsupportedQueryTypeException
FieldQuery and returns
the references (ids). Note that selected fields of the query are ignored.query - the queryIOException - If the referenced Site is not accessibleUnsupportedQueryTypeException - if the type of the parsed query is
not supported by this query service. Or in other words if the value of
Query.getQueryType() is not part of the collections returned by
getSupportedQueryTypes().QueryResultList<? extends Representation> find(Query query) throws IOException, UnsupportedQueryTypeException
FieldQuery and returns
representations as defined by the selected fields of the query. Note that
if the query defines also Constraints for selected fields, that
the returned representation will only contain values selected by such
constraints.query - the queryIOException - If the referenced Site is not accessibleUnsupportedQueryTypeException - if the type of the parsed query is
not supported by this query service. Or in other words if the value of
Query.getQueryType() is not part of the collections returned by
getSupportedQueryTypes().QueryResultList<? extends Entity> findSigns(Query query) throws IOException, UnsupportedQueryTypeException
FieldQuery and returns
the selected Signs including the whole representation. Note that selected
fields of the query are ignored.query - the queryIOException - If the referenced Site is not accessibleUnsupportedQueryTypeException - if the type of the parsed query is
not supported by this query service. Or in other words if the value of
Query.getQueryType() is not part of the collections returned by
getSupportedQueryTypes().Collection<String> getSupportedQueryTypes()
Query.getQueryType() is used to check if a query is supported.Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.