public class PigStatsUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FILE_BYTES_READ |
static String |
FILE_BYTES_WRITTEN |
static String |
FS_COUNTER_GROUP
Deprecated.
use
MRPigStatsUtil.FS_COUNTER_GROUP instead. |
static String |
HDFS_BYTES_READ |
static String |
HDFS_BYTES_WRITTEN |
static String |
MAP_INPUT_RECORDS |
static String |
MAP_OUTPUT_RECORDS |
static String |
MULTI_INPUTS_COUNTER_GROUP |
static String |
MULTI_INPUTS_RECORD_COUNTER |
static String |
MULTI_STORE_COUNTER_GROUP |
static String |
MULTI_STORE_RECORD_COUNTER |
static String |
REDUCE_INPUT_RECORDS |
static String |
REDUCE_OUTPUT_RECORDS |
static 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 String |
getMultiInputsCounterName(String fname,
int index)
Returns the counter name for the given input file name
|
static 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(String fileName) |
static void |
setErrorCode(int code) |
static void |
setErrorMessage(String msg) |
static void |
setErrorThrowable(Throwable t) |
static void |
setStatsMap(Map<String,List<PigStats>> statsMap) |
public static final String MAP_INPUT_RECORDS
public static final String MAP_OUTPUT_RECORDS
public static final String REDUCE_INPUT_RECORDS
public static final String REDUCE_OUTPUT_RECORDS
public static final String HDFS_BYTES_WRITTEN
public static final String HDFS_BYTES_READ
public static final String FILE_BYTES_WRITTEN
public static final String FILE_BYTES_READ
public static final String MULTI_INPUTS_RECORD_COUNTER
public static final String MULTI_INPUTS_COUNTER_GROUP
public static final String MULTI_STORE_RECORD_COUNTER
public static final String MULTI_STORE_COUNTER_GROUP
@Deprecated public static final String TASK_COUNTER_GROUP
MRPigStatsUtil.TASK_COUNTER_GROUP
instead.@Deprecated public static final 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(String msg)
public static void setErrorCode(int code)
public static void setErrorThrowable(Throwable t)
public static boolean isTempFile(String fileName)
public static String getMultiInputsCounterName(String fname, int index)
fname
- the input file nameCopyright © 2007-2012 The Apache Software Foundation