Package org.apache.wayang.profiler.util
Class ProfilingUtils
java.lang.Object
org.apache.wayang.profiler.util.ProfilingUtils
Utilities to fake Wayang internals etc..
-
Method Summary
Modifier and TypeMethodDescriptionstatic JavaExecutor
Provides aJavaExecutor
.static Job
Provides aJob
.static SparkExecutor
fakeSparkExecutor
(String... udfJars) Provides aSparkExecutor
.static void
sleep
(long millis) Puts the currentThread
to sleep for a given number of milliseconds.
-
Method Details
-
fakeJob
Provides aJob
.- Parameters:
udfJars
- paths to JAR files needed to run the UDFs (seeReflectionUtils.getDeclaringJar(Class)
)
-
fakeSparkExecutor
Provides aSparkExecutor
.- Parameters:
udfJars
- paths to JAR files needed to run the UDFs (seeReflectionUtils.getDeclaringJar(Class)
)
-
fakeJavaExecutor
Provides aJavaExecutor
. -
sleep
public static void sleep(long millis) Puts the currentThread
to sleep for a given number of milliseconds. Notifies the user via theSystem.out
.
-