Class PortablePipelineJarUtils
java.lang.Object
org.apache.beam.runners.jobsubmission.PortablePipelineJarUtils
Contains common code for writing and reading portable pipeline jars.
Jar layout:
- META-INF/
- MANIFEST.MF
- BEAM-PIPELINE/
- pipeline-manifest.json
- [1st pipeline (default)]
- pipeline.json
- pipeline-options.json
- artifacts/
- ...artifact files...
- [nth pipeline]
-
Same as above
- ...Java classes...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline
getPipelineFromClasspath
(String jobName) static org.apache.beam.vendor.grpc.v1p69p0.com.google.protobuf.Struct
getPipelineOptionsFromClasspath
(String jobName) static void
writeDefaultJobName
(JarOutputStream outputStream, String jobName)
-
Constructor Details
-
PortablePipelineJarUtils
public PortablePipelineJarUtils()
-
-
Method Details
-
getPipelineFromClasspath
public static org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline getPipelineFromClasspath(String jobName) throws IOException - Throws:
IOException
-
getPipelineOptionsFromClasspath
public static org.apache.beam.vendor.grpc.v1p69p0.com.google.protobuf.Struct getPipelineOptionsFromClasspath(String jobName) throws IOException - Throws:
IOException
-
getDefaultJobName
- Throws:
IOException
-
writeDefaultJobName
public static void writeDefaultJobName(JarOutputStream outputStream, String jobName) throws IOException - Throws:
IOException
-