Package org.apache.beam.runners.spark
Class SparkCommonPipelineOptions.TmpCheckpointDirFactory
java.lang.Object
org.apache.beam.runners.spark.SparkCommonPipelineOptions.TmpCheckpointDirFactory
- All Implemented Interfaces:
DefaultValueFactory<String>
- Enclosing interface:
SparkCommonPipelineOptions
public static class SparkCommonPipelineOptions.TmpCheckpointDirFactory
extends Object
implements DefaultValueFactory<String>
Returns the default checkpoint directory of /tmp/${job.name}. For testing purposes only.
Production applications should use a reliable filesystem such as HDFS/S3/GS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(PipelineOptions options) Creates a default value for a getter marked withDefault.InstanceFactory
.
-
Constructor Details
-
TmpCheckpointDirFactory
public TmpCheckpointDirFactory()
-
-
Method Details
-
create
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<String>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-