public interface ReadQuery extends Query
A read-only query over a semantic graph
Modifier and Type | Field and Description |
---|---|
static long |
NO_LIMIT
Constant value used to specify that a query should not have any limit imposed on the number of results it returns.
|
static long |
NO_OFFSET
Constant value used to specify that a query has no offset in its query results
|
NO_TIMEOUT
Modifier and Type | Method and Description |
---|---|
long |
limit()
Return the current result limit for this query.
|
ReadQuery |
limit(long theLimit)
Set the maximum number of results that can be returned by this query.
|
long |
offset()
Return the current result offset for this query.
|
ReadQuery |
offset(long theOffset)
Set the offset of the query results.
|
baseIRI, dataset, dataset, language, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameters, reasoning, reasoning, removeParameter, string, timeout, timeout
static final long NO_OFFSET
static final long NO_LIMIT
long limit()
NO_LIMIT
if the limit is not setlong offset()
NO_OFFSET
if the offset is not set@Nonnull ReadQuery limit(long theLimit)
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.theLimit
- the new limit@Nonnull ReadQuery offset(long theOffset)
limit()
this will override an offset in the query, and you can use NO_OFFSET
to
remove an offset specified on the query, but not in the query string.theOffset
- the offsetCopyright © 2010-2016 Stardog Union. All Rights Reserved.