public class StatefulQuery extends Object implements org.gcube.common.clients.queries.Query<EndpointReference>
Query for stateful gCore services.| Constructor and Description |
|---|
StatefulQuery(Plugin<?,?> plugin)
Creates an instance with a given proxy
Plugin. |
| Modifier and Type | Method and Description |
|---|---|
StatefulQuery |
addCondition(String condition)
Adds a free-form condition on query results.
|
StatefulQuery |
addNamespace(String prefix,
URI uri)
Adds a namespace to the query.
|
StatefulQuery |
addVariable(String name,
String range)
Adds a variable to the query.
|
boolean |
equals(Object obj) |
List<EndpointReference> |
fire() |
int |
hashCode() |
String |
toString() |
public StatefulQuery addVariable(String name, String range)
name - the name of the variablerange - the range of the variableSimpleQuery.addVariable(String, String)public StatefulQuery addCondition(String condition)
condition - the conditionSimpleQuery.addCondition(String)public StatefulQuery addNamespace(String prefix, URI uri)
prefix - the namespace prefixuri - the namespace URISimpleQuery.addNamespace(String, URI)public List<EndpointReference> fire() throws org.gcube.common.clients.exceptions.DiscoveryException
fire in interface org.gcube.common.clients.queries.Query<EndpointReference>org.gcube.common.clients.exceptions.DiscoveryExceptionpublic String toString()
toString in interface org.gcube.common.clients.queries.Query<EndpointReference>toString in class Objectpublic int hashCode()
hashCode in interface org.gcube.common.clients.queries.Query<EndpointReference>hashCode in class Objectpublic boolean equals(Object obj)
equals in interface org.gcube.common.clients.queries.Query<EndpointReference>equals in class ObjectCopyright © 2020. All Rights Reserved.