|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.glitter.query.Projection
public class Projection
Projection handles the SELECT SPARQL query form, in which the result set
is returned after being projected out to only the selected variables.
| Constructor Summary | |
|---|---|
Projection()
Default constructor. |
|
Projection(boolean distinct)
Selects for all variables. |
|
Projection(Variable[] variables,
Variable[] groupByVars,
boolean distinct,
boolean reduced,
boolean projectCount,
boolean countDistinct)
|
|
| Method Summary | |
|---|---|
Variable[] |
getProjectedVariables()
|
boolean |
isDistinct()
|
boolean |
isReduced()
|
boolean |
projectCount()
|
SolutionSet |
refineSolutions(SolutionSet results)
Result forms are given a chance to apply solution modifiers to the solution set before transforming the results. |
java.lang.Object |
serializeResults(SolutionSet results)
|
SolutionSet |
serializeResultsAsResultSet(SolutionSet solutions)
Serializing a Projection is a no-op. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Projection(Variable[] variables,
Variable[] groupByVars,
boolean distinct,
boolean reduced,
boolean projectCount,
boolean countDistinct)
variables - The variables being selected fordistinct - If true, return only distinct resultset rowsreduced - If true (and distinct is false), indicates that the implementation is free to return anywhere between 1 and
the standard (algebra-defined) cardinality of each solution.projectCount - If true, calculate aggregate function COUNT on all grouped solutions.countDistinct - If true, only sum up distinct solutions when calculating count.public Projection()
public Projection(boolean distinct)
distinct - If true, return only distinct resultset rows| Method Detail |
|---|
public boolean isDistinct()
public boolean isReduced()
#Projection(Variable[], boolean, boolean).public boolean projectCount()
public Variable[] getProjectedVariables()
public java.lang.Object serializeResults(SolutionSet results)
serializeResults in interface QueryResultFormresults - The solution set after all solution modified have been applied.
QueryResultForm.public SolutionSet serializeResultsAsResultSet(SolutionSet solutions)
Projection is a no-op.
solutions - The refined SolutionSet
SolutionSetpublic SolutionSet refineSolutions(SolutionSet results)
QueryResultFormProjection might apply DISTINCT here.
refineSolutions in interface QueryResultFormresults - The original solution set
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||