Class SparkFileOutput
- java.lang.Object
-
- org.openstreetmap.atlas.generator.tools.spark.utilities.SparkFileOutput
-
- All Implemented Interfaces:
java.io.Serializable
public final class SparkFileOutput extends java.lang.Object implements java.io.SerializableHelper class to hide details of output operations forSparkJobs- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SparkFileOutputfrom(java.util.function.Consumer<org.openstreetmap.atlas.streaming.resource.WritableResource> saveFunction, java.lang.String parentFolder, java.lang.String targetFolder, java.lang.String folder, java.lang.String fileName, java.lang.String extension, java.lang.String operationName)Constructs aSparkFileOutputfrom given parametersstatic SparkFileOutputfrom(java.util.function.Consumer<org.openstreetmap.atlas.streaming.resource.WritableResource> saveFunction, SparkFilePath folderPath, java.lang.String fileName, java.lang.String extension, java.lang.String operationName)Constructs aSparkFileOutputfrom given parametersjava.lang.StringgetOperationName()SparkFilePathgetPath()java.util.function.Consumer<org.openstreetmap.atlas.streaming.resource.WritableResource>getSaveFunction()
-
-
-
Method Detail
-
from
public static SparkFileOutput from(java.util.function.Consumer<org.openstreetmap.atlas.streaming.resource.WritableResource> saveFunction, SparkFilePath folderPath, java.lang.String fileName, java.lang.String extension, java.lang.String operationName)
Constructs aSparkFileOutputfrom given parameters- Parameters:
saveFunction- save function that is going to be executedfolderPath-SparkFilePathwith folder pathsfileName- file nameextension- file extensionoperationName- name of the output operation- Returns:
- a new
SparkFileOutput
-
from
public static SparkFileOutput from(java.util.function.Consumer<org.openstreetmap.atlas.streaming.resource.WritableResource> saveFunction, java.lang.String parentFolder, java.lang.String targetFolder, java.lang.String folder, java.lang.String fileName, java.lang.String extension, java.lang.String operationName)
Constructs aSparkFileOutputfrom given parameters- Parameters:
saveFunction- save function that is going to be executedparentFolder- parent foldertargetFolder- target folderfolder- sub-folderfileName- file nameextension- file extensionoperationName- name of the output operation- Returns:
- a new
SparkFileOutput
-
getOperationName
public java.lang.String getOperationName()
- Returns:
- the operation name
-
getPath
public SparkFilePath getPath()
- Returns:
- the path
-
getSaveFunction
public java.util.function.Consumer<org.openstreetmap.atlas.streaming.resource.WritableResource> getSaveFunction()
- Returns:
- the save function
-
-