org.apache.pig.impl.builtin
Class TupleSize
java.lang.Object
org.apache.pig.EvalFunc<Tuple>
org.apache.pig.impl.builtin.TupleSize
public class TupleSize
- extends EvalFunc<Tuple>
UDF to get memory and disk size of a tuple.
It is used by skewed join.
Methods inherited from class org.apache.pig.EvalFunc |
finish, getArgToFuncMapping, getLogger, getPigLogger, getReporter, getSchemaName, isAsynchronous, outputSchema, progress, setPigLogger, setReporter, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TupleSize
public TupleSize()
exec
public Tuple exec(Tuple in)
throws IOException
- Get memory size and disk size of input tuple
- Specified by:
exec
in class EvalFunc<Tuple>
- Parameters:
in
- the Tuple to be processed.
- Returns:
- result, of type T.
- Throws:
IOException
getReturnType
public Type getReturnType()
- Overrides:
getReturnType
in class EvalFunc<Tuple>
Copyright © ${year} The Apache Software Foundation