public class PigStatsUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FS_COUNTER_GROUP
Deprecated.
use
MRPigStatsUtil.FS_COUNTER_GROUP instead. |
static java.lang.String |
HDFS_BYTES_READ |
static java.lang.String |
HDFS_BYTES_WRITTEN |
static java.lang.String |
MAP_INPUT_RECORDS |
static java.lang.String |
MAP_OUTPUT_RECORDS |
static java.lang.String |
MULTI_INPUTS_COUNTER_GROUP |
static java.lang.String |
MULTI_INPUTS_RECORD_COUNTER |
static java.lang.String |
MULTI_STORE_COUNTER_GROUP |
static java.lang.String |
MULTI_STORE_RECORD_COUNTER |
static java.lang.String |
REDUCE_INPUT_RECORDS |
static java.lang.String |
REDUCE_OUTPUT_RECORDS |
static java.lang.String |
TASK_COUNTER_GROUP
Deprecated.
use
MRPigStatsUtil.TASK_COUNTER_GROUP instead. |
Constructor and Description |
---|
PigStatsUtil() |
Modifier and Type | Method and Description |
---|---|
static PigStats |
getEmptyPigStats()
Deprecated.
|
static java.lang.String |
getMultiInputsCounterName(java.lang.String fname,
int index)
Returns the counter name for the given input file name
|
static java.lang.String |
getMultiStoreCounterName(POStore store)
Returns the counter name for the given
POStore |
static PigStats |
getPigStats(int code)
Returns the PigStats with the given return code
|
static boolean |
isTempFile(java.lang.String fileName) |
static void |
setErrorCode(int code) |
static void |
setErrorMessage(java.lang.String msg) |
static void |
setErrorThrowable(java.lang.Throwable t) |
static void |
setStatsMap(java.util.Map<java.lang.String,java.util.List<PigStats>> statsMap) |
public static final java.lang.String MAP_INPUT_RECORDS
public static final java.lang.String MAP_OUTPUT_RECORDS
public static final java.lang.String REDUCE_INPUT_RECORDS
public static final java.lang.String REDUCE_OUTPUT_RECORDS
public static final java.lang.String HDFS_BYTES_WRITTEN
public static final java.lang.String HDFS_BYTES_READ
public static final java.lang.String MULTI_INPUTS_RECORD_COUNTER
public static final java.lang.String MULTI_INPUTS_COUNTER_GROUP
public static final java.lang.String MULTI_STORE_RECORD_COUNTER
public static final java.lang.String MULTI_STORE_COUNTER_GROUP
@Deprecated public static final java.lang.String TASK_COUNTER_GROUP
MRPigStatsUtil.TASK_COUNTER_GROUP
instead.@Deprecated public static final java.lang.String FS_COUNTER_GROUP
MRPigStatsUtil.FS_COUNTER_GROUP
instead.@Deprecated public static PigStats getEmptyPigStats()
public static PigStats getPigStats(int code)
code
- the return codepublic static void setErrorMessage(java.lang.String msg)
public static void setErrorCode(int code)
public static void setErrorThrowable(java.lang.Throwable t)
public static boolean isTempFile(java.lang.String fileName)
public static void setStatsMap(java.util.Map<java.lang.String,java.util.List<PigStats>> statsMap)
public static java.lang.String getMultiInputsCounterName(java.lang.String fname, int index)
fname
- the input file nameCopyright © 2007-2012 The Apache Software Foundation