@Internal public class NoopPathValidator extends java.lang.Object implements PathValidator
Noop implementation of PathValidator
. All paths are allowed and returned unchanged.
Modifier and Type | Method and Description |
---|---|
static PathValidator |
fromOptions(PipelineOptions options) |
void |
validateInputFilePatternSupported(java.lang.String filepattern)
Validate that a file pattern is conforming.
|
void |
validateOutputFilePrefixSupported(java.lang.String filePrefix)
Validate that an output file prefix is conforming.
|
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 PathValidator fromOptions(PipelineOptions options)
public void validateInputFilePatternSupported(java.lang.String filepattern)
PathValidator
validateInputFilePatternSupported
in interface PathValidator
filepattern
- The file pattern to verify.public void validateOutputFilePrefixSupported(java.lang.String filePrefix)
PathValidator
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.