public class DataflowPathValidator extends Object implements PathValidator
PathValidator. Only GCS paths are allowed.| Modifier and Type | Method and Description |
|---|---|
static DataflowPathValidator |
fromOptions(PipelineOptions options) |
String |
validateInputFilePatternSupported(String filepattern)
Validates the the input GCS path is accessible and that the path
is well formed.
|
String |
validateOutputFilePrefixSupported(String filePrefix)
Validates the the output GCS path is accessible and that the path
is well formed.
|
String |
verifyPath(String path)
Validate that a path is a valid path and that the path
is accessible.
|
public static DataflowPathValidator fromOptions(PipelineOptions options)
public String validateInputFilePatternSupported(String filepattern)
validateInputFilePatternSupported in interface PathValidatorfilepattern - The file pattern to verify.public String validateOutputFilePrefixSupported(String filePrefix)
validateOutputFilePrefixSupported in interface PathValidatorfilePrefix - the file prefix to verify.public String verifyPath(String path)
PathValidatorverifyPath in interface PathValidatorpath - The path to verify.