public static class FunctionRegistry.CastFactory extends Object implements FunctionRegistry.Factory
Constructor and Description |
---|
FunctionRegistry.CastFactory(String uri) |
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.CastFactory(String uri)
public IValueExpression<? extends IV> create(BOpContextBase context, GlobalAnnotations globals, Map<String,Object> scalarValues, ValueExpressionNode... args)
FunctionRegistry.Factory
IValueExpression
instance.create
in interface FunctionRegistry.Factory
context
- The BOpContextBase
required to evaluate
IValueExpression
s. 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 IAggregate
s).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.