public class ROUND_TO extends EvalFunc<java.lang.Double>
rounding mode;
by default, HALF_EVEN is used.EvalFunc.SchemaTypelog, pigLogger, reporter, returnType| Constructor and Description |
|---|
ROUND_TO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowCompileTimeCalculation()
Whether the UDF should be evaluated at compile time if all inputs are constant.
|
java.lang.Double |
exec(Tuple input)
java level API
|
java.util.List<FuncSpec> |
getArgToFuncMapping()
Allow a UDF to specify type specific implementations of itself.
|
Schema |
outputSchema(Schema input)
Report the schema of the output of this UDF.
|
addCredentials, finish, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic java.lang.Double exec(Tuple input) throws java.io.IOException
public Schema outputSchema(Schema input)
EvalFunc
The default implementation interprets the OutputSchema annotation,
if one is present. Otherwise, it returns null (no known output schema).
outputSchema in class EvalFunc<java.lang.Double>input - Schema of the inputpublic java.util.List<FuncSpec> getArgToFuncMapping() throws FrontendException
EvalFuncgetArgToFuncMapping in class EvalFunc<java.lang.Double>FrontendExceptionpublic boolean allowCompileTimeCalculation()
EvalFuncallowCompileTimeCalculation in class EvalFunc<java.lang.Double>Copyright © 2007-2025 The Apache Software Foundation