public class SolutionSequenceModifier extends Object
| Constructor and Description |
|---|
SolutionSequenceModifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
makeDistinct()
Mark the associated query with a DISTINCT modifier
|
void |
makeReduced()
Mark the associated query with a REDUCE modifier
|
void |
setLimit(long limit)
Sets the LIMIT of the associated query, which puts an upper bound on the number of solutions returned
|
void |
setOffset(long offset)
Sets the OFFSET of the associated query.
|
boolean |
trySolution(org.openrdf.query.BindingSet solution,
Subscription subs)
Pass a potential solution through this sequence modifier to determine whether it should be returned as an answer
|
public void makeDistinct()
public void makeReduced()
public void setLimit(long limit)
limit - the upper bound on the number of solutions returnedpublic void setOffset(long offset)
offset - the number of solutions which will be generated before query answers are returnedpublic boolean trySolution(org.openrdf.query.BindingSet solution,
Subscription subs)
throws IOException
solution - the potential query answersubs - the subscription to the query. If a LIMIT is exceeded,IOException - if there is a problem communicating with this query engine
(for example, if there are network operations involved)Copyright © 2016. All Rights Reserved.