Class PackageUtil

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class PackageUtil
    extends java.lang.Object
    implements java.io.Closeable
    Helper routines for packages.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PackageUtil.StagedFile  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.concurrent.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, org.apache.beam.sdk.io.fs.CreateOptions createOptions)
      Stages one file ("package") if necessary.
      com.google.api.services.dataflow.model.DataflowPackage stageToFile​(byte[] bytes, java.lang.String target, java.lang.String stagingPath, org.apache.beam.sdk.io.fs.CreateOptions createOptions)  
      static PackageUtil withDefaultThreadPool()  
      static PackageUtil withExecutorService​(java.util.concurrent.ExecutorService executorService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • withDefaultThreadPool

        public static PackageUtil withDefaultThreadPool()
      • withExecutorService

        public static PackageUtil withExecutorService​(java.util.concurrent.ExecutorService executorService)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • stagePackage

        public java.util.concurrent.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,
                                                                                                                                  org.apache.beam.sdk.io.fs.CreateOptions createOptions)
        Stages one file ("package") if necessary.
      • stageToFile

        public com.google.api.services.dataflow.model.DataflowPackage stageToFile​(byte[] bytes,
                                                                                  java.lang.String target,
                                                                                  java.lang.String stagingPath,
                                                                                  org.apache.beam.sdk.io.fs.CreateOptions createOptions)