Package org.apache.beam.sdk.io.fs
Enum Class EmptyMatchTreatment
- All Implemented Interfaces:
Serializable
,Comparable<EmptyMatchTreatment>
,Constable
Options for allowing or disallowing filepatterns that match no resources in
FileSystems.match(java.util.List<java.lang.String>)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFilepatterns matching no resources are allowed.Filepatterns matching no resources are allowed if the filepattern contains a glob wildcard character, and disallowed otherwise (i.e.Filepatterns matching no resources are disallowed. -
Method Summary
Modifier and TypeMethodDescriptionstatic EmptyMatchTreatment
Returns the enum constant of this class with the specified name.static EmptyMatchTreatment[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOW
Filepatterns matching no resources are allowed. For such a filepattern,MatchResult.status()
will beMatchResult.Status.OK
andMatchResult.metadata()
will return an empty list. -
DISALLOW
Filepatterns matching no resources are disallowed. For such a filepattern,MatchResult.status()
will beMatchResult.Status.NOT_FOUND
andMatchResult.metadata()
will throw aFileNotFoundException
. -
ALLOW_IF_WILDCARD
Filepatterns matching no resources are allowed if the filepattern contains a glob wildcard character, and disallowed otherwise (i.e. if the filepattern specifies a single file).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-