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 JavaExecutorProvides aJavaExecutor.static JobProvides aJob.static SparkExecutorfakeSparkExecutor(String... udfJars) Provides aSparkExecutor.static voidsleep(long millis) Puts the currentThreadto 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 currentThreadto sleep for a given number of milliseconds. Notifies the user via theSystem.out.
-