public class LiveEntityHelpers
extends Object
Constructor and Description |
---|
LiveEntityHelpers() |
Modifier and Type | Method and Description |
---|---|
static TaskMetrics |
addMetrics(TaskMetrics m1,
TaskMetrics m2)
Add m2 values to m1.
|
static TaskMetrics |
createMetrics(long default_) |
static TaskMetrics |
createMetrics(long executorDeserializeTime,
long executorDeserializeCpuTime,
long executorRunTime,
long executorCpuTime,
long resultSize,
long jvmGcTime,
long resultSerializationTime,
long memoryBytesSpilled,
long diskBytesSpilled,
long peakExecutionMemory,
long inputBytesRead,
long inputRecordsRead,
long outputBytesWritten,
long outputRecordsWritten,
long shuffleRemoteBlocksFetched,
long shuffleLocalBlocksFetched,
long shuffleFetchWaitTime,
long shuffleRemoteBytesRead,
long shuffleRemoteBytesReadToDisk,
long shuffleLocalBytesRead,
long shuffleRecordsRead,
long shuffleBytesWritten,
long shuffleWriteTime,
long shuffleRecordsWritten) |
static scala.collection.Seq<AccumulableInfo> |
newAccumulatorInfos(scala.collection.Iterable<AccumulableInfo> accums) |
static TaskMetrics |
subtractMetrics(TaskMetrics m1,
TaskMetrics m2)
Subtract m2 values from m1.
|
static String |
weakIntern(String s)
String interning to reduce the memory usage.
|
public static scala.collection.Seq<AccumulableInfo> newAccumulatorInfos(scala.collection.Iterable<AccumulableInfo> accums)
public static String weakIntern(String s)
public static TaskMetrics createMetrics(long executorDeserializeTime, long executorDeserializeCpuTime, long executorRunTime, long executorCpuTime, long resultSize, long jvmGcTime, long resultSerializationTime, long memoryBytesSpilled, long diskBytesSpilled, long peakExecutionMemory, long inputBytesRead, long inputRecordsRead, long outputBytesWritten, long outputRecordsWritten, long shuffleRemoteBlocksFetched, long shuffleLocalBlocksFetched, long shuffleFetchWaitTime, long shuffleRemoteBytesRead, long shuffleRemoteBytesReadToDisk, long shuffleLocalBytesRead, long shuffleRecordsRead, long shuffleBytesWritten, long shuffleWriteTime, long shuffleRecordsWritten)
public static TaskMetrics createMetrics(long default_)
public static TaskMetrics addMetrics(TaskMetrics m1, TaskMetrics m2)
public static TaskMetrics subtractMetrics(TaskMetrics m1, TaskMetrics m2)