public static class FunctionRegistry.NumericFactory extends Object implements FunctionRegistry.Factory
| Constructor and Description |
|---|
FunctionRegistry.NumericFactory(NumericBOp.NumericOp op) |
| Modifier and Type | Method and Description |
|---|---|
IValueExpression<? extends IV> |
create(BOpContextBase context,
GlobalAnnotations globals,
Map<String,Object> scalarValues,
ValueExpressionNode... args)
Create an
IValueExpression instance. |
public FunctionRegistry.NumericFactory(NumericBOp.NumericOp op)
public IValueExpression<? extends IV> create(BOpContextBase context, GlobalAnnotations globals, Map<String,Object> scalarValues, ValueExpressionNode... args)
FunctionRegistry.FactoryIValueExpression instance.create in interface FunctionRegistry.Factorycontext - The BOpContextBase required to evaluate
IValueExpressions. This is used if we need to
statically evaluate an IValueExpression during
query optimization. During query execution the
ContextBindingSet will convey this information.globals - The global annotations, including the lexicon namespace.scalarValues - The scalar arguments (used by some IAggregates).args - The function arguments.IValueExpression.create() was refactored to pass in the
{@link BOpContextBase} to allow correct resolution of the
{@link LexiconRelation} and {@link ILexiconConfiguration} in
order to properly evaluate {@link IValueExpression}s during
query optimization.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.