public class SimpleSelectQuery extends SimpleQueryWithSolutionModifier implements SelectQuery
Constructor and Description |
---|
SimpleSelectQuery() |
Modifier and Type | Method and Description |
---|---|
void |
addSelection(Variable var) |
List<Variable> |
getSelection()
Gets the list of
Variable s to project the solution to. |
boolean |
isDistinct()
Tests if this query should return distinct results.
|
boolean |
isReduced()
Tests if this query should return reduced results.
|
boolean |
isSelectAll()
Tests if this query returns all its variables, and not a projected subset.
|
void |
setDistinct() |
void |
setReduced() |
void |
setSelectAll() |
String |
toString() |
addGroupCondition, addHavingCondition, addOrderCondition, getGroupConditions, getHavingConditions, getLimit, getOffset, getOrderConditions, setLimit, setOffset
addDefaultGraph, addNamedGraph, getDataSet, getInlineData, getQueryPattern, setInlineData, setQueryPattern
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGroupConditions, getHavingConditions, getLimit, getOffset, getOrderConditions
getDataSet, getInlineData, getQueryPattern
public boolean isDistinct()
SelectQuery
Tests if this query should return distinct results.
isDistinct
in interface SelectQuery
true
if the query should return distinct results.public boolean isReduced()
SelectQuery
Tests if this query should return reduced results.
isReduced
in interface SelectQuery
true
if the query should return reduced results.public boolean isSelectAll()
SelectQuery
Tests if this query returns all its variables, and not a projected subset.
isSelectAll
in interface SelectQuery
true
if the query should return all variables.public List<Variable> getSelection()
SelectQuery
Gets the list of Variable
s to project the solution to.
If SelectQuery.isSelectAll()
returns true
then
this list contains all the variables from the query.
getSelection
in interface SelectQuery
Variable
s to return from the query.public void setDistinct()
public void setReduced()
public void setSelectAll()
public void addSelection(Variable var)
public String toString()
toString
in interface Query
toString
in class SimpleQuery
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.