public class MatchesFunction extends Scalar<org.apache.lucene.util.BytesRef[],java.lang.Object>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
Scalar<org.apache.lucene.util.BytesRef[],java.lang.Object> |
compile(java.util.List<Symbol> arguments)
Called to return a "optimized" version of a scalar implementation.
|
org.apache.lucene.util.BytesRef[] |
evaluate(Input[] args)
Evaluate the function using the provided arguments
|
FunctionInfo |
info()
Provides meta information about this function implementation.
|
Symbol |
normalizeSymbol(Function symbol,
TransactionContext transactionContext)
Normalize a symbol into a simplified form.
|
static void |
register(ScalarFunctionModule module) |
anyNonLiterals, evaluateIfLiterals, withOperator
public static final java.lang.String NAME
public static void register(ScalarFunctionModule module)
public FunctionInfo info()
FunctionImplementation
public Symbol normalizeSymbol(Function symbol, TransactionContext transactionContext)
FunctionImplementation
normalizeSymbol
in interface FunctionImplementation
normalizeSymbol
in class Scalar<org.apache.lucene.util.BytesRef[],java.lang.Object>
transactionContext
- context which is shared across normalizeSymbol calls during a statement-lifecycle.
This will only be present if normalizeSymbol is called on the handler node.
normalizeSymbol calls during execution won't receive a StmtCtxpublic Scalar<org.apache.lucene.util.BytesRef[],java.lang.Object> compile(java.util.List<Symbol> arguments)
Scalar
compile
in class Scalar<org.apache.lucene.util.BytesRef[],java.lang.Object>
arguments
- arguments in symbol form. If any symbols are literals, any arguments passed to
Scalar.evaluate(Input[])
will have the same value as those literals.
(Within the scope of a single operation)