Class GcsStager
- java.lang.Object
-
- org.apache.beam.runners.dataflow.util.GcsStager
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GcsStagerfromOptions(org.apache.beam.sdk.options.PipelineOptions options)java.util.List<com.google.api.services.dataflow.model.DataflowPackage>stageFiles(java.util.List<PackageUtil.StagedFile> filesToStage)Stages files toDataflowPipelineOptions.getStagingLocation(), suffixed with their md5 hash to avoid collisions.com.google.api.services.dataflow.model.DataflowPackagestageToFile(byte[] bytes, java.lang.String baseName)Stage bytes to a target file name wherever this stager stages things.
-
-
-
Method Detail
-
fromOptions
public static GcsStager fromOptions(org.apache.beam.sdk.options.PipelineOptions options)
-
stageFiles
public java.util.List<com.google.api.services.dataflow.model.DataflowPackage> stageFiles(java.util.List<PackageUtil.StagedFile> filesToStage)
Stages files toDataflowPipelineOptions.getStagingLocation(), suffixed with their md5 hash to avoid collisions.Uses
GcsOptions.getGcsUploadBufferSizeBytes().- Specified by:
stageFilesin interfaceStager
-
stageToFile
public com.google.api.services.dataflow.model.DataflowPackage stageToFile(byte[] bytes, java.lang.String baseName)Description copied from interface:StagerStage bytes to a target file name wherever this stager stages things.- Specified by:
stageToFilein interfaceStager
-
-