Class PackageUtil
java.lang.Object
org.apache.beam.runners.dataflow.util.PackageUtil
- All Implemented Interfaces:
Closeable
,AutoCloseable
Helper routines for packages.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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
(byte[] bytes, String target, String stagingPath, CreateOptions createOptions) static PackageUtil
static PackageUtil
withExecutorService
(ExecutorService executorService)
-
Method Details
-
withDefaultThreadPool
-
withExecutorService
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
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)
-