Class PackageUtil

java.lang.Object
org.apache.beam.runners.dataflow.util.PackageUtil
All Implemented Interfaces:
Closeable, AutoCloseable

public class PackageUtil extends Object implements Closeable
Helper routines for packages.
  • Method Details

    • withDefaultThreadPool

      public static PackageUtil withDefaultThreadPool()
    • withExecutorService

      public static PackageUtil withExecutorService(ExecutorService executorService)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • stagePackage

      public CompletionStage<org.apache.beam.runners.dataflow.util.PackageUtil.StagingResult> stagePackage(org.apache.beam.runners.dataflow.util.PackageUtil.PackageAttributes attributes, com.google.api.client.util.Sleeper retrySleeper, CreateOptions createOptions)
      Stages one file ("package") if necessary.
    • stageToFile

      public DataflowPackage stageToFile(byte[] bytes, String target, String stagingPath, CreateOptions createOptions)