Class ComparisonTerm
java.lang.Object
org.fiware.mintaka.domain.query.ngsi.QueryTerm
org.fiware.mintaka.domain.query.ngsi.ComparisonTerm
Query term to reflect a comparison, according to the ngsi-ld api.
A terms looks like: {attribute}{operator}{value}, f.e. name=='name'
-
Field Summary
-
Constructor Summary
ConstructorDescriptionComparisonTerm
(String term, ComparisonOperator operator, String attributePath, String comparisonValue, LdContextCache contextCache, List<URL> contextUrls) -
Method Summary
Modifier and TypeMethodDescriptionReturn the expanded version of the attribute from the term.Return the sql string representation of the query term
-
Field Details
-
YEAR_MONTH_DAY_FORMAT
Date format to be used in mintaka: calendar-year - month - day- See Also:
-
WELL_KNOWN_QUERY_TEMPLATE
- See Also:
-
-
Constructor Details
-
ComparisonTerm
public ComparisonTerm(String term, ComparisonOperator operator, String attributePath, String comparisonValue, LdContextCache contextCache, List<URL> contextUrls)
-
-
Method Details
-
toSQLQuery
Description copied from class:QueryTerm
Return the sql string representation of the query term- Specified by:
toSQLQuery
in classQueryTerm
- Returns:
- the sql string
-
getAttributePath
Return the expanded version of the attribute from the term.- Returns:
- the attribute path, expanded according to the current context.
-