public class MvelContext
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MvelContext.GenericRecordPropertyHandler
Allows easy access to the properties of GenericRecord object from MVEL.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Boolean |
alienUDFInitialized |
static java.util.Optional<org.apache.spark.broadcast.Broadcast<java.lang.Class<?>>> |
mvelAlienUDFRegisterClazz |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureInitialized() |
static java.lang.Object |
executeExpressionWithPluginSupport(java.lang.Object compiledExpression,
java.lang.Object ctx,
com.linkedin.feathr.offline.mvel.plugins.FeathrExpressionExecutionContext mvelContext)
Evaluate MVEL expression as per
MVEL.executeExpression(Object, Object), with added support for
com.linkedin.feathr.offline.mvel.plugins.FeathrMvelPluginContext. |
static java.lang.Object |
executeExpressionWithPluginSupportWithFactory(java.lang.Object compiledExpression,
java.lang.Object ctx,
org.mvel2.integration.VariableResolverFactory variableResolverFactory,
com.linkedin.feathr.offline.mvel.plugins.FeathrExpressionExecutionContext mvelContext)
Evaluate MVEL expression as per
MVEL.executeExpression(Object, Object, VariableResolverFactory), with added support for
com.linkedin.feathr.offline.mvel.plugins.FeathrMvelPluginContext. |
static org.mvel2.ParserContext |
newParserContext()
Gives access to our helper methods from within an MVEL expression.
|
public static java.util.Optional<org.apache.spark.broadcast.Broadcast<java.lang.Class<?>>> mvelAlienUDFRegisterClazz
public static java.lang.Boolean alienUDFInitialized
public static void ensureInitialized()
public static org.mvel2.ParserContext newParserContext()
ParserContext in which our helper UDFs are availablepublic static java.lang.Object executeExpressionWithPluginSupport(java.lang.Object compiledExpression,
java.lang.Object ctx,
com.linkedin.feathr.offline.mvel.plugins.FeathrExpressionExecutionContext mvelContext)
MVEL.executeExpression(Object, Object), with added support for
com.linkedin.feathr.offline.mvel.plugins.FeathrMvelPluginContext. (Output objects that can be converted
to FeatureValue via plugins, will be converted after MVEL returns.)public static java.lang.Object executeExpressionWithPluginSupportWithFactory(java.lang.Object compiledExpression,
java.lang.Object ctx,
org.mvel2.integration.VariableResolverFactory variableResolverFactory,
com.linkedin.feathr.offline.mvel.plugins.FeathrExpressionExecutionContext mvelContext)
MVEL.executeExpression(Object, Object, VariableResolverFactory), with added support for
com.linkedin.feathr.offline.mvel.plugins.FeathrMvelPluginContext. (Output objects that can be converted
to FeatureValue via plugins, will be converted after MVEL returns.)