|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.sparql.expr.ExprLib
public class ExprLib
Constructor Summary | |
---|---|
ExprLib()
|
Method Summary | |
---|---|
static Expr |
foldConstants(Expr expr)
Attempt to fold any sub-expressions of the Expr. |
static boolean |
isAssignmentSafeEquality(Expr expr)
Decide whether an expression is safe for using a a graph substitution. |
static boolean |
isAssignmentSafeEquality(Expr expr,
boolean graphHasStringEquality,
boolean graphHasNumercialValueEquality)
|
static Expr |
replaceAggregateByVariable(Expr expr)
transform an expression that may involve aggregates into one that just uses the variable for the aggregate |
static ExprList |
replaceAggregateByVariable(ExprList exprs)
transform expressions that may involve aggregates into one that just uses the variable for the aggregate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExprLib()
Method Detail |
---|
public static Expr foldConstants(Expr expr)
expr
-
public static Expr replaceAggregateByVariable(Expr expr)
public static ExprList replaceAggregateByVariable(ExprList exprs)
public static boolean isAssignmentSafeEquality(Expr expr)
public static boolean isAssignmentSafeEquality(Expr expr, boolean graphHasStringEquality, boolean graphHasNumercialValueEquality)
graphHasStringEquality
- True if the graph triple matching equates xsd:string and plain literalgraphHasNumercialValueEquality
- True if the graph triple matching equates numeric values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |