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 class
Returns the defaultExecutorService
to use within the Apache Beam SDK.static class
Creates aGcsOptions.GcsCustomAuditEntries
that key-value pairs to be stored as custom information in GCS audit logs.static class
Creates aPathValidator
object 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.GcpUserCredentialsFactory
Nested classes/interfaces inherited from interface org.apache.beam.sdk.extensions.gcp.options.GoogleApiDebugOptions
GoogleApiDebugOptions.GoogleApiTracer
Nested 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.void
setEnableBucketReadMetricCounter
(Boolean enableBucketReadMetricCounter) void
setEnableBucketWriteMetricCounter
(Boolean enableBucketWriteMetricCounter) void
Deprecated.void
void
setGcsEndpoint
(String value) void
setGcsHttpRequestReadTimeout
(@Nullable Integer timeoutMs) void
setGcsHttpRequestWriteTimeout
(@Nullable Integer timeoutMs) void
setGcsPerformanceMetrics
(Boolean reportPerformanceMetrics) void
setGcsReadCounterPrefix
(String gcsReadCounterPrefix) void
setGcsRewriteDataOpBatchLimit
(@Nullable Integer timeoutMs) void
void
setGcsUtil
(GcsUtil value) void
setGcsWriteCounterPrefix
(String gcsReadCounterPrefix) void
void
setPathValidator
(PathValidator validator) void
setPathValidatorClass
(Class<? extends PathValidator> validatorClass) Methods inherited from interface org.apache.beam.sdk.options.ApplicationNameOptions
getAppName, setAppName
Methods 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, setZone
Methods inherited from interface org.apache.beam.sdk.extensions.gcp.options.GoogleApiDebugOptions
getGoogleApiTrace, setGoogleApiTrace
Methods inherited from interface org.apache.beam.sdk.transforms.display.HasDisplayData
populateDisplayData
Methods inherited from interface org.apache.beam.sdk.options.PipelineOptions
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, revision, 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