org.apache.pig.impl.builtin
Class TupleSize

java.lang.Object
  extended by org.apache.pig.EvalFunc<Tuple>
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
 
Constructor Summary
TupleSize()
           
 
Method Summary
 Tuple exec(Tuple in)
          Get memory size and disk size of input tuple
 Type getReturnType()
           
 
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
 

Constructor Detail

TupleSize

public TupleSize()
Method Detail

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