public class GcsPathValidator extends java.lang.Object implements PathValidator
PathValidator
. Only GCS paths are allowed.Modifier and Type | Method and Description |
---|---|
static GcsPathValidator |
fromOptions(PipelineOptions options) |
void |
validateInputFilePatternSupported(java.lang.String filepattern)
Validates the the input GCS path is accessible and that the path
is well formed.
|
void |
validateOutputFilePrefixSupported(java.lang.String filePrefix)
Validates the the output GCS path is accessible and that the path
is well formed.
|
void |
validateOutputResourceSupported(ResourceId resourceId)
Validates that an output path is conforming.
|
java.lang.String |
verifyPath(java.lang.String path)
Validate that a path is a valid path and that the path
is accessible.
|
public static GcsPathValidator fromOptions(PipelineOptions options)
public void validateInputFilePatternSupported(java.lang.String filepattern)
validateInputFilePatternSupported
in interface PathValidator
filepattern
- The file pattern to verify.public void validateOutputFilePrefixSupported(java.lang.String filePrefix)
validateOutputFilePrefixSupported
in interface PathValidator
filePrefix
- the file prefix to verify.public void validateOutputResourceSupported(ResourceId resourceId)
PathValidator
validateOutputResourceSupported
in interface PathValidator
resourceId
- the file prefix to verify.public java.lang.String verifyPath(java.lang.String path)
PathValidator
verifyPath
in interface PathValidator
path
- The path to verify.