Class NoopPathValidator
java.lang.Object
org.apache.beam.sdk.extensions.gcp.storage.NoopPathValidator
- All Implemented Interfaces:
PathValidator
For internal use only; no backwards compatibility guarantees.
Noop implementation of PathValidator
. All paths are allowed and returned unchanged.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathValidator
fromOptions
(PipelineOptions options) void
validateInputFilePatternSupported
(String filepattern) Validate that a file pattern is conforming.void
validateOutputFilePrefixSupported
(String filePrefix) Validate that an output file prefix is conforming.void
validateOutputResourceSupported
(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
Description copied from interface:PathValidator
Validate that a file pattern is conforming.- Specified by:
validateInputFilePatternSupported
in interfacePathValidator
- Parameters:
filepattern
- The file pattern to verify.
-
validateOutputFilePrefixSupported
Description copied from interface:PathValidator
Validate that an output file prefix is conforming.- Specified by:
validateOutputFilePrefixSupported
in interfacePathValidator
- Parameters:
filePrefix
- the file prefix to verify.
-
validateOutputResourceSupported
Description copied from interface:PathValidator
Validates that an output path is conforming.- Specified by:
validateOutputResourceSupported
in interfacePathValidator
- Parameters:
resourceId
- the file prefix to verify.
-
verifyPath
Description copied from interface:PathValidator
Validate that a path is a valid path and that the path is accessible.- Specified by:
verifyPath
in interfacePathValidator
- Parameters:
path
- The path to verify.- Returns:
- The post-validation path.
-