Package org.apache.beam.sdk.options
Class SdkHarnessOptions.DefaultMaxCacheMemoryUsageMbFactory
java.lang.Object
org.apache.beam.sdk.options.SdkHarnessOptions.DefaultMaxCacheMemoryUsageMbFactory
- All Implemented Interfaces:
DefaultValueFactory<@NonNegative Integer>
- Enclosing interface:
SdkHarnessOptions
public static class SdkHarnessOptions.DefaultMaxCacheMemoryUsageMbFactory
extends Object
implements DefaultValueFactory<@NonNegative Integer>
A
DefaultValueFactory
which constructs an instance of the class specified by maxCacheMemoryUsageMbClass
to compute the maximum amount of
memory to allocate to the process wide cache within an SDK harness instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(PipelineOptions options) Creates a default value for a getter marked withDefault.InstanceFactory
.
-
Constructor Details
-
DefaultMaxCacheMemoryUsageMbFactory
public DefaultMaxCacheMemoryUsageMbFactory()
-
-
Method Details
-
create
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<@NonNegative Integer>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-