Package com.complexible.stardog.api
Interface SelectPlanQuery
-
- All Superinterfaces:
Query<SelectQueryResult>
,ReadQuery<SelectQueryResult>
public interface SelectPlanQuery extends ReadQuery<SelectQueryResult>
- Since:
- 7.4
- Version:
- 7.4
- Author:
- Stanislav Klenin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SelectPlanQuery
dataset(Dataset theDataset)
Specify the dataset this query will be executed against.SelectPlanQuery
limit(long theLimit)
Set the maximum number of results that can be returned by this query.SelectPlanQuery
offset(long theOffset)
Set the offset of the query results.SelectPlanQuery
parameter(java.lang.String theName, boolean theValue)
Set the parameter to the xsd:boolean valueSelectPlanQuery
parameter(java.lang.String theName, byte theValue)
Set the parameter to the xsd:byte valueSelectPlanQuery
parameter(java.lang.String theName, double theValue)
Set the parameter to the xsd:double valueSelectPlanQuery
parameter(java.lang.String theName, float theValue)
Set the parameter to the xsd:float valueSelectPlanQuery
parameter(java.lang.String theName, int theValue)
Set the parameter to the xsd:int valueSelectPlanQuery
parameter(java.lang.String theName, long theValue)
Set the parameter to the xsd:long valueSelectPlanQuery
parameter(java.lang.String theName, short theValue)
Set the parameter to the xsd:short valueSelectPlanQuery
parameter(java.lang.String theName, Value theValue)
Set the value of the parameterSelectPlanQuery
parameter(java.lang.String theName, java.lang.Object theObj)
Set the parameter to the specified value.SelectPlanQuery
parameter(java.lang.String theName, java.lang.String theValue)
Set the parameter to the xsd:string valueSelectPlanQuery
parameter(java.lang.String theName, java.net.URI theURI)
Set the parameter to the xsd:URI valueSelectPlanQuery
parameter(java.lang.String theName, java.util.Date theValue)
Set the parameter to the xsd:date valueSelectPlanQuery
parameter(java.lang.String theName, java.util.GregorianCalendar theValue)
Set the parameter to the xsd:dateTime valueSelectPlanQuery
reasoning(boolean theReasoningType)
{Specify whether you would like the query to be executed with reasoning.SelectPlanQuery
schema(java.lang.String theSchema)
{Sets the schema that will be used by this query or{@code null}
if reasoning will not be used.SelectPlanQuery
timeout(long theTimeout)
Set the timeout for query execution.
-
-
-
Method Detail
-
dataset
SelectPlanQuery dataset(Dataset theDataset)
Specify the dataset this query will be executed against. This defines the active graph for the query and will override anything specified within the query. UseDatasets.NO_DATASET
remove the dataset.- Specified by:
dataset
in interfaceQuery<SelectQueryResult>
- Specified by:
dataset
in interfaceReadQuery<SelectQueryResult>
- Parameters:
theDataset
- the active graph dataset- Returns:
- this query
- See Also:
Datasets
-
offset
SelectPlanQuery offset(long theOffset)
Set the offset of the query results. Similar toReadQuery.limit()
this will override an offset in the query, and you can useReadQuery.NO_OFFSET
to remove an offset specified on the query, but not in the query string.- Specified by:
offset
in interfaceReadQuery<SelectQueryResult>
- Parameters:
theOffset
- the offset- Returns:
- this query
-
limit
SelectPlanQuery limit(long theLimit)
Set the maximum number of results that can be returned by this query. Setting the limit on the query will override any limit specified in the original query string, however, setting the limit toReadQuery.NO_LIMIT
will not remove the limit if it is specified in the query, but you can use it to remove a limit that has already been set if there was not a limit specified in the query originally.- Specified by:
limit
in interfaceReadQuery<SelectQueryResult>
- Parameters:
theLimit
- the new limit- Returns:
- this query
-
timeout
SelectPlanQuery timeout(long theTimeout)
Set the timeout for query execution.- Specified by:
timeout
in interfaceQuery<SelectQueryResult>
- Parameters:
theTimeout
- the timeout in ms. A zero or negative value will be interpreted as no timeout- Returns:
- this query
-
reasoning
SelectPlanQuery reasoning(boolean theReasoningType)
{Specify whether you would like the query to be executed with reasoning. For update queries, the reasoning flag only affects the evaluation of WHERE clauses in DELETE/INSERT queries.
You can only modify the reasoning flag of a query outside of a transaction. If querying within a transaction you can only use the
reasoning flag associated with the connection
.If the reasoning schema is explicitly set via the
}Query.schema(String)
function beforehand then callingreasoning(true)
will have no effect. If the schema is not set then callingreasoning(true)
is equivalent to setting the schema to thedefault schema
. Callingreasoning(false)
is always equivalent to setting the schema to thenull schema
.- Specified by:
reasoning
in interfaceQuery<SelectQueryResult>
- Parameters:
theReasoningType
- the reasoning flag- Returns:
- this query
-
schema
SelectPlanQuery schema(java.lang.String theSchema)
{Sets the schema that will be used by this query or{@code null}
if reasoning will not be used. If the schema is set with this functionQuery.reasoning(boolean)
function is not needed to be called.}- Specified by:
schema
in interfaceQuery<SelectQueryResult>
- Parameters:
theSchema
- the name of the schema- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, Value theValue)
Set the value of the parameter- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, int theValue)
Set the parameter to the xsd:int value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, long theValue)
Set the parameter to the xsd:long value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, float theValue)
Set the parameter to the xsd:float value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, double theValue)
Set the parameter to the xsd:double value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, short theValue)
Set the parameter to the xsd:short value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, boolean theValue)
Set the parameter to the xsd:boolean value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, byte theValue)
Set the parameter to the xsd:byte value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, java.lang.String theValue)
Set the parameter to the xsd:string value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, java.util.Date theValue)
Set the parameter to the xsd:date value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, java.util.GregorianCalendar theValue)
Set the parameter to the xsd:dateTime value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheValue
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, java.net.URI theURI)
Set the parameter to the xsd:URI value- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter to settheURI
- the value of the parameter- Returns:
- this query
-
parameter
SelectPlanQuery parameter(java.lang.String theName, java.lang.Object theObj)
Set the parameter to the specified value. Convenience method which will delegate to one of the other parameter(...) methods- Specified by:
parameter
in interfaceQuery<SelectQueryResult>
- Parameters:
theName
- the parameter nametheObj
- the param value- Returns:
- this query
-
-