Package com.attivio.sdk.server.udf
Interface UserDefinedFieldEvaluator
-
public interface UserDefinedFieldEvaluatorInterface for a user defined field implementation.Thread Safety: An instance of
UserDefinedFieldEvaluatorwill only be accessed by a single thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure(UserDefinedFieldContext context, UserDefinedField input, ArgumentInfo[] args)Field initialization.voidevaluate(OutputValue output, InputValue[] args)Evaluate the result of the function and add it tooutput.
-
-
-
Method Detail
-
configure
void configure(UserDefinedFieldContext context, UserDefinedField input, ArgumentInfo[] args)
Field initialization.This should include:
- Parameters on
inputshould be validated and stored. argsshould be type checked and validated.- Output type for
inputshould be validated. - Any internal structures should be initialized.
- Parameters:
context- QueryRequest level context information for initializing fields.input- The inputUserDefinedField.args- Type information for supplied arguments.- Throws:
java.lang.IllegalArgumentException- if incorrect number of arguments are provided, data types for arguments are not supported, output type is invalid, or parameters are illegal.
- Parameters on
-
evaluate
void evaluate(OutputValue output, InputValue[] args)
Evaluate the result of the function and add it tooutput.argswill map toArgumentInfos provided inconfigure(UserDefinedFieldContext, UserDefinedField, ArgumentInfo[]).
-
-