@Override public BooleanScalar eval() { matcher.reset(ValueReader.getChars(eval.eval())); return new BooleanScalar(matcher.find()); }
public RegexEvaluator(RecordPointer record, FunctionArguments args) { super(args.isOnlyConstants(), record); matcher = Pattern.compile(ValueReader.getString(args.getEvaluator("pattern").eval())).matcher(""); eval = args.getEvaluator("value"); }