testContext.getOptions().setOption(OptionValue.createString(OptionType.SYSTEM, ExecConstants.QUERY_EXEC_OPTION.getOptionName(), SupportedEngines.CodeGenOption.Java.name())); InExpression.COUNT.set(0); try { } finally { InExpression.COUNT.set(0); testContext.getOptions().deleteOption(ExecConstants.QUERY_EXEC_OPTION.getOptionName(), OptionType.SYSTEM);
@Override public void validate(final OptionValue v) { super.validate(v); if (!isValid(v.getStringVal())) { throw UserException.validationError() .message(String.format("Option %s must be one of: %s.", getOptionName(), valuesSet)) .build(logger); } }
public ProjectOperator(final OperatorContext context, final Project config) throws OutOfMemoryException { this.config = config; this.context = context; this.projectorOptions = new ExpressionEvaluationOptions(context.getOptions()); this.projectorOptions.setCodeGenOption(context.getOptions().getOption(ExecConstants.QUERY_EXEC_OPTION.getOptionName()).getStringVal()); this.outgoing = context.createOutputVectorContainer(); }
public FilterOperator(Filter pop, OperatorContext context) throws OutOfMemoryException { this.config = pop; this.context = context; this.filterOptions = new ExpressionEvaluationOptions(context.getOptions()); this.filterOptions.setCodeGenOption(context.getOptions().getOption(ExecConstants.QUERY_EXEC_OPTION.getOptionName()).getStringVal()); this.output = context.createOutputVectorContainerWithSV(); }