Class GcsPathValidator
java.lang.Object
org.apache.beam.sdk.extensions.gcp.storage.GcsPathValidator
- All Implemented Interfaces:
PathValidator
GCP implementation of
PathValidator. Only GCS paths are allowed.-
Method Summary
Modifier and TypeMethodDescriptionstatic GcsPathValidatorfromOptions(PipelineOptions options) voidvalidateInputFilePatternSupported(String filepattern) Validates the input GCS path is accessible and that the path is well formed.voidvalidateOutputFilePrefixSupported(String filePrefix) Validates the output GCS path is accessible and that the path is well formed.voidvalidateOutputResourceSupported(ResourceId resourceId) Validates that an output path is conforming.verifyPath(String path) Validate that a path is a valid path and that the path is accessible.
-
Method Details
-
fromOptions
-
validateInputFilePatternSupported
Validates the input GCS path is accessible and that the path is well formed.- Specified by:
validateInputFilePatternSupportedin interfacePathValidator- Parameters:
filepattern- The file pattern to verify.
-
validateOutputFilePrefixSupported
Validates the output GCS path is accessible and that the path is well formed.- Specified by:
validateOutputFilePrefixSupportedin interfacePathValidator- Parameters:
filePrefix- the file prefix to verify.
-
validateOutputResourceSupported
Description copied from interface:PathValidatorValidates that an output path is conforming.- Specified by:
validateOutputResourceSupportedin interfacePathValidator- Parameters:
resourceId- the file prefix to verify.
-
verifyPath
Description copied from interface:PathValidatorValidate that a path is a valid path and that the path is accessible.- Specified by:
verifyPathin interfacePathValidator- Parameters:
path- The path to verify.- Returns:
- The post-validation path.
-