use of com.hazelcast.jet.sql.impl.validate.param.NumericPrecedenceParameterConverter in project hazelcast by hazelcast.
the class HazelcastBetweenOperator method setNumericParameterConverter.
private void setNumericParameterConverter(HazelcastSqlValidator validator, SqlNode node, QueryDataType type) {
if (node.getKind() == SqlKind.DYNAMIC_PARAM) {
SqlDynamicParam node0 = (SqlDynamicParam) node;
ParameterConverter converter = new NumericPrecedenceParameterConverter(node0.getIndex(), node.getParserPosition(), type);
validator.setParameterConverter(node0.getIndex(), converter);
}
}
use of com.hazelcast.jet.sql.impl.validate.param.NumericPrecedenceParameterConverter in project hazelcast by hazelcast.
the class HazelcastComparisonPredicateUtils method setNumericParameterConverter.
private static void setNumericParameterConverter(HazelcastSqlValidator validator, SqlNode node, QueryDataType type) {
if (node.getKind() == SqlKind.DYNAMIC_PARAM) {
SqlDynamicParam node0 = (SqlDynamicParam) node;
ParameterConverter converter = new NumericPrecedenceParameterConverter(node0.getIndex(), node.getParserPosition(), type);
validator.setParameterConverter(node0.getIndex(), converter);
}
}
Aggregations