Package com.attivio.sdk.server.udf
Interface UserDefinedFieldEvaluator
-
public interface UserDefinedFieldEvaluator
Interface for a user defined field implementation.Thread Safety: An instance of
UserDefinedFieldEvaluator
will only be accessed by a single thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 tooutput
.
-
-
-
Method Detail
-
configure
void configure(UserDefinedFieldContext context, UserDefinedField input, ArgumentInfo[] args)
Field initialization.This should include:
- Parameters on
input
should be validated and stored. args
should be type checked and validated.- Output type for
input
should 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
.args
will map toArgumentInfo
s provided inconfigure(UserDefinedFieldContext, UserDefinedField, ArgumentInfo[])
.
-
-