Interface GcsOptions
- All Superinterfaces:
ApplicationNameOptions,GcpOptions,GoogleApiDebugOptions,HasDisplayData,PipelineOptions
- All Known Subinterfaces:
DataflowPipelineOptions,DataflowWorkerHarnessOptions,TestDataflowPipelineOptions
Options used to configure Google Cloud Storage.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classReturns the defaultExecutorServiceto use within the Apache Beam SDK.static classCreates aGcsOptions.GcsCustomAuditEntriesthat key-value pairs to be stored as custom information in GCS audit logs.static classCreates aPathValidatorobject using the class specified ingetPathValidatorClass().Nested classes/interfaces inherited from interface org.apache.beam.sdk.extensions.gcp.options.GcpOptions
GcpOptions.DefaultProjectFactory, GcpOptions.EnableStreamingEngineFactory, GcpOptions.GcpOAuthScopesFactory, GcpOptions.GcpTempLocationFactory, GcpOptions.GcpUserCredentialsFactoryNested classes/interfaces inherited from interface org.apache.beam.sdk.extensions.gcp.options.GoogleApiDebugOptions
GoogleApiDebugOptions.GoogleApiTracerNested classes/interfaces inherited from interface org.apache.beam.sdk.options.PipelineOptions
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory -
Field Summary
Fields inherited from interface org.apache.beam.sdk.extensions.gcp.options.GcpOptions
STREAMING_ENGINE_EXPERIMENT, WINDMILL_SERVICE_EXPERIMENT -
Method Summary
Modifier and TypeMethodDescriptionIf true, reports number of bytes read from each gcs bucket.If true, reports number of bytes written to each gcs bucket.Deprecated.GCS endpoint to use.If true, reports metrics of certain operations, such as batch copies.The buffer size (in bytes) to use when uploading files to GCS.The GcsUtil instance that should be used to communicate with Google Cloud Storage.The path validator instance that should be used to validate paths.Class<? extends PathValidator> The class of the validator that should be created and used to validate paths.voidsetEnableBucketReadMetricCounter(Boolean enableBucketReadMetricCounter) voidsetEnableBucketWriteMetricCounter(Boolean enableBucketWriteMetricCounter) voidDeprecated.voidvoidsetGcsEndpoint(String value) voidsetGcsHttpRequestReadTimeout(@Nullable Integer timeoutMs) voidsetGcsHttpRequestWriteTimeout(@Nullable Integer timeoutMs) voidsetGcsPerformanceMetrics(Boolean reportPerformanceMetrics) voidsetGcsReadCounterPrefix(String gcsReadCounterPrefix) voidsetGcsRewriteDataOpBatchLimit(@Nullable Integer timeoutMs) voidvoidsetGcsUtil(GcsUtil value) voidsetGcsWriteCounterPrefix(String gcsReadCounterPrefix) voidvoidsetPathValidator(PathValidator validator) voidsetPathValidatorClass(Class<? extends PathValidator> validatorClass) Methods inherited from interface org.apache.beam.sdk.options.ApplicationNameOptions
getAppName, setAppNameMethods inherited from interface org.apache.beam.sdk.extensions.gcp.options.GcpOptions
getCredentialFactoryClass, getDataflowKmsKey, getGcpCredential, getGcpOauthScopes, getGcpTempLocation, getImpersonateServiceAccount, getProject, getWorkerRegion, getWorkerZone, getZone, isEnableStreamingEngine, setCredentialFactoryClass, setDataflowKmsKey, setEnableStreamingEngine, setGcpCredential, setGcpOauthScopes, setGcpTempLocation, setImpersonateServiceAccount, setProject, setWorkerRegion, setWorkerZone, setZoneMethods inherited from interface org.apache.beam.sdk.extensions.gcp.options.GoogleApiDebugOptions
getGoogleApiTrace, setGoogleApiTraceMethods inherited from interface org.apache.beam.sdk.transforms.display.HasDisplayData
populateDisplayDataMethods inherited from interface org.apache.beam.sdk.options.PipelineOptions
as, getGbek, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, revision, setGbek, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
-
Method Details
-
getGcsUtil
The GcsUtil instance that should be used to communicate with Google Cloud Storage. -
setGcsUtil
-
getGoogleCloudStorageReadOptions
@InstanceFactory(GcsReadOptionsFactory.class) @Hidden GoogleCloudStorageReadOptions getGoogleCloudStorageReadOptions() -
setGoogleCloudStorageReadOptions
-
getExecutorService
@InstanceFactory(ExecutorServiceFactory.class) @Hidden @Deprecated ExecutorService getExecutorService()Deprecated.useExecutorOptions.getScheduledExecutorService()insteadThe ExecutorService instance to use to create threads, can be overridden to specify an ExecutorService that is compatible with the user's environment. If unset, the default is to useExecutorOptions.getScheduledExecutorService(). -
setExecutorService
Deprecated.useExecutorOptions.setScheduledExecutorService(java.util.concurrent.ScheduledExecutorService)instead. If set, it may result in multiple ExecutorServices, and therefore thread pools, in the runtime. -
getGcsEndpoint
GCS endpoint to use. If unspecified, uses the default endpoint. -
setGcsEndpoint
-
getGcsUploadBufferSizeBytes
The buffer size (in bytes) to use when uploading files to GCS. Please see the documentation forAsyncWriteChannelOptions.getUploadChunkSize()for more information on the restrictions and performance implications of this value. -
setGcsUploadBufferSizeBytes
-
getPathValidatorClass
The class of the validator that should be created and used to validate paths. If pathValidator has not been set explicitly, an instance of this class will be constructed and used as the path validator. -
setPathValidatorClass
-
getPathValidator
The path validator instance that should be used to validate paths. If no path validator has been set explicitly, the default is to use the instance factory that constructs a path validator based upon the currently set pathValidatorClass. -
setPathValidator
-
getGcsPerformanceMetrics
If true, reports metrics of certain operations, such as batch copies. -
setGcsPerformanceMetrics
-
getGcsHttpRequestReadTimeout
-
setGcsHttpRequestReadTimeout
-
getGcsHttpRequestWriteTimeout
-
setGcsHttpRequestWriteTimeout
-
getGcsRewriteDataOpBatchLimit
-
setGcsRewriteDataOpBatchLimit
-
getEnableBucketWriteMetricCounter
If true, reports number of bytes written to each gcs bucket. -
setEnableBucketWriteMetricCounter
-
getEnableBucketReadMetricCounter
If true, reports number of bytes read from each gcs bucket. -
setEnableBucketReadMetricCounter
-
getGcsReadCounterPrefix
-
setGcsReadCounterPrefix
-
getGcsWriteCounterPrefix
-
setGcsWriteCounterPrefix
-
getGcsCustomAuditEntries
GcsOptions.GcsCustomAuditEntries getGcsCustomAuditEntries() -
setGcsCustomAuditEntries
-
ExecutorOptions.getScheduledExecutorService()instead