Package org.apache.beam.sdk.io.fs
Class MatchResult
java.lang.Object
org.apache.beam.sdk.io.fs.MatchResult
The result of
FileSystem.match(java.util.List<java.lang.String>)
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
MatchResult.Metadata
of a matched file.static enum
Status of aMatchResult
. -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchResult
create
(MatchResult.Status status, IOException e) static MatchResult
create
(MatchResult.Status status, List<MatchResult.Metadata> metadata) abstract List
<MatchResult.Metadata> metadata()
MatchResult.Metadata
of matched files.abstract MatchResult.Status
status()
Status of theMatchResult
.static MatchResult
unknown()
Returns aMatchResult
withMatchResult.Status.UNKNOWN
.
-
Method Details
-
create
-
create
-
unknown
Returns aMatchResult
withMatchResult.Status.UNKNOWN
. -
status
Status of theMatchResult
. -
metadata
MatchResult.Metadata
of matched files. Note that ifstatus()
isMatchResult.Status.NOT_FOUND
, this may either throw aFileNotFoundException
or return an empty list, depending on theEmptyMatchTreatment
used in theFileSystems.match(java.util.List<java.lang.String>)
call.- Throws:
IOException
-