Class GcsUtil.GcsUtilFactory
java.lang.Object
org.apache.beam.sdk.extensions.gcp.util.GcsUtil.GcsUtilFactory
- All Implemented Interfaces:
 DefaultValueFactory<GcsUtil>
- Enclosing class:
 GcsUtil
This is a 
DefaultValueFactory able to create a GcsUtil using any transport
 flags specified on the PipelineOptions.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncreate(PipelineOptions options) Returns an instance ofGcsUtilbased on thePipelineOptions.static GcsUtilcreate(PipelineOptions options, Storage storageClient, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer, ExecutorService executorService, com.google.auth.Credentials credentials, @Nullable Integer uploadBufferSizeBytes, GcsUtil.GcsCountersOptions gcsCountersOptions, GoogleCloudStorageReadOptions gcsReadOptions) Returns an instance ofGcsUtilbased on the given parameters. 
- 
Constructor Details
- 
GcsUtilFactory
public GcsUtilFactory() 
 - 
 - 
Method Details
- 
create
Returns an instance ofGcsUtilbased on thePipelineOptions.If no instance has previously been created, one is created and the value stored in
options.- Specified by:
 createin interfaceDefaultValueFactory<GcsUtil>- Parameters:
 options- The current pipeline options.- Returns:
 - The default value to be used for the annotated getter.
 
 - 
create
public static GcsUtil create(PipelineOptions options, Storage storageClient, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer, ExecutorService executorService, com.google.auth.Credentials credentials, @Nullable Integer uploadBufferSizeBytes, GcsUtil.GcsCountersOptions gcsCountersOptions, GoogleCloudStorageReadOptions gcsReadOptions) Returns an instance ofGcsUtilbased on the given parameters. 
 -