Package org.geotools.filter.text.cqljson
Class CQLJsonCompiler
Object
CQLJsonCompiler
- All Implemented Interfaces:
ICompiler
-
Constructor Summary
ConstructorsConstructorDescriptionCQLJsonCompiler(String cqlSource, FilterFactory filterFactory) new instance of CQL Compiler -
Method Summary
Modifier and TypeMethodDescriptionvoidIs this needed for CQL-JSON?voidCompiles Filter from predicates source jsonvoidIs this needed for CQL-JSON?convertToFilter(JsonNode cql2Expression) Converts JSON Node into GT FilterIs this needed for CQL-JSON?Get compiled filterIs this needed for CQL-JSON?getTokenInPosition(int position) Is this needed for CQL-JSON?
-
Constructor Details
-
CQLJsonCompiler
new instance of CQL Compiler
-
-
Method Details
-
getSource
-
compileFilter
Compiles Filter from predicates source json- Specified by:
compileFilterin interfaceICompiler- Throws:
CQLException- If there is an issue Parsing the predicates
-
getFilter
Get compiled filter- Specified by:
getFilterin interfaceICompiler- Returns:
- Filter
- Throws:
CQLException- See Also:
-
compileExpression
Is this needed for CQL-JSON?- Specified by:
compileExpressionin interfaceICompiler- Throws:
CQLException
-
getExpression
Is this needed for CQL-JSON?- Specified by:
getExpressionin interfaceICompiler- Returns:
- Expression
- Throws:
CQLException- See Also:
-
compileFilterList
Is this needed for CQL-JSON?- Specified by:
compileFilterListin interfaceICompiler- Throws:
CQLException
-
getFilterList
Is this needed for CQL-JSON?- Specified by:
getFilterListin interfaceICompiler- Returns:
- List
- Throws:
CQLException- See Also:
-
getTokenInPosition
Is this needed for CQL-JSON?- Specified by:
getTokenInPositionin interfaceICompiler- Returns:
- IToken
- Throws:
CQLException
-
convertToFilter
public Filter convertToFilter(JsonNode cql2Expression) throws CQLException, IOException, ParseException Converts JSON Node into GT Filter- Parameters:
cql2Expression- JSON Node parsed from source text- Returns:
- GeoTools Filter
- Throws:
CQLException- Typically messages about unsupported CQL-JSON featuresIOException- IO IssuesParseException- JSON Parsing Issues
-