public class RuleExecutor extends Object
| Constructor and Description |
|---|
RuleExecutor(Rule rule,
io.cdap.wrangler.api.ExecutorContext context) |
| Modifier and Type | Method and Description |
|---|---|
io.cdap.wrangler.api.RecipePipeline |
compile(List<String> recipe) |
static Map<String,Object> |
getRegisteredFunctions() |
Rule |
getRule() |
boolean |
shouldExecute(RowActiveSet set) |
io.cdap.wrangler.api.Row |
then(io.cdap.wrangler.api.Row row) |
boolean |
validateThen(String then) |
boolean |
validateWhen(String when) |
boolean |
when(RowActiveSet set) |
public RuleExecutor(Rule rule, io.cdap.wrangler.api.ExecutorContext context) throws RuleCompileException
RuleCompileExceptionpublic boolean validateWhen(String when) throws org.apache.commons.jexl3.JexlException
org.apache.commons.jexl3.JexlExceptionpublic boolean shouldExecute(RowActiveSet set)
public boolean when(RowActiveSet set)
public io.cdap.wrangler.api.Row then(io.cdap.wrangler.api.Row row)
throws io.cdap.wrangler.api.RecipeException,
SkipRowException
io.cdap.wrangler.api.RecipeExceptionSkipRowExceptionpublic Rule getRule()
public io.cdap.wrangler.api.RecipePipeline compile(List<String> recipe) throws io.cdap.wrangler.api.RecipeException, io.cdap.wrangler.api.DirectiveParseException, io.cdap.wrangler.api.DirectiveLoadException, io.cdap.wrangler.api.DirectiveNotFoundException
io.cdap.wrangler.api.RecipeExceptionio.cdap.wrangler.api.DirectiveParseExceptionio.cdap.wrangler.api.DirectiveLoadExceptionio.cdap.wrangler.api.DirectiveNotFoundExceptionCopyright © 2020 CDAP Licensed under the Apache License, Version 2.0.