|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.tools.pigstats.PigStatsUtil
public class PigStatsUtil
A utility class for Pig Statistics
Field Summary | |
---|---|
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 Summary | |
---|---|
PigStatsUtil()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 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.Constructor Detail |
---|
public PigStatsUtil()
Method Detail |
---|
@Deprecated public static PigStats getEmptyPigStats()
public static PigStats getPigStats(int code)
code
- the return code
public 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 void setStatsMap(Map<String,List<PigStats>> statsMap)
public static String getMultiInputsCounterName(String fname, int index)
fname
- the input file name
public static String getMultiStoreCounterName(POStore store)
POStore
store
- the POStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |