public interface UserDefinedFieldEvaluator
Thread Safety: An instance of UserDefinedFieldEvaluator will only be accessed by a single thread.
| Modifier and Type | Method and Description |
|---|---|
void |
configure(UserDefinedFieldContext context,
UserDefinedField input,
ArgumentInfo[] args)
Field initialization.
|
void |
evaluate(OutputValue output,
InputValue[] args)
Evaluate the result of the function and add it to
output. |
void configure(UserDefinedFieldContext context, UserDefinedField input, ArgumentInfo[] args)
This should include:
input should be validated and stored.args should be type checked and validated.input should be validated.context - QueryRequest level context information for initializing fields.input - The input UserDefinedField.args - Type information for supplied arguments.IllegalArgumentException - if incorrect number of arguments are provided, data types for arguments are not supported,
output type is invalid, or parameters are illegal.void evaluate(OutputValue output, InputValue[] args)
output.
args will map to ArgumentInfos provided in
configure(UserDefinedFieldContext, UserDefinedField, ArgumentInfo[]).
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.