|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.algebra.evaluation.util.QueryEvaluationUtil
public class QueryEvaluationUtil
| Constructor Summary | |
|---|---|
QueryEvaluationUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
compare(Value leftVal,
Value rightVal,
Compare.CompareOp operator)
|
static boolean |
compareLiterals(Literal leftLit,
Literal rightLit,
Compare.CompareOp operator)
|
static boolean |
getEffectiveBooleanValue(Value value)
Determines the effective boolean value (EBV) of the supplied value as defined in the SPARQL specification: The EBV of any literal whose type is xsd:boolean or numeric is false if the lexical form is not valid for that datatype (e.g. |
static boolean |
isSimpleLiteral(Literal l)
Checks whether the supplied literal is a "simple literal" as defined in the SPARQL spec. |
static boolean |
isSimpleLiteral(Value v)
Checks whether the supplied value is a "simple literal" as defined in the SPARQL spec. |
static boolean |
isStringLiteral(Literal l)
Checks whether the supplied literal is a "string literal". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryEvaluationUtil()
| Method Detail |
|---|
public static boolean getEffectiveBooleanValue(Value value)
throws ValueExprEvaluationException
value - Some value.
ValueExprEvaluationException - In case the application of the EBV algorithm results in a type
error.
public static boolean compare(Value leftVal,
Value rightVal,
Compare.CompareOp operator)
throws ValueExprEvaluationException
ValueExprEvaluationException
public static boolean compareLiterals(Literal leftLit,
Literal rightLit,
Compare.CompareOp operator)
throws ValueExprEvaluationException
ValueExprEvaluationExceptionpublic static boolean isSimpleLiteral(Value v)
public static boolean isSimpleLiteral(Literal l)
public static boolean isStringLiteral(Literal l)
simple literal or a
literal with datatype xsd:string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||