Package org.apache.parquet.glob
Class WildcardPath
- java.lang.Object
-
- org.apache.parquet.glob.WildcardPath
-
public class WildcardPath extends Object
Holds a String with wildcards ('*'), and can answer whether a given string matches this WildcardPath. For example: "foo.*.baz" or "foo*baz.bar*" The '*' in "foo*bar" is treated the same way that java regex treats "(.*)", and all WildcardPath's are considered to match child paths. For example, "foo.bar" will match "foo.bar.baz". It will not match "foo.barbaz" however. To match "foo.barbaz" the pattern "foo.bar*" could be used, which would also match "foo.barbaz.x" Only '*' is considered a special character. All other characters are not treated as special characters, including '{', '}', '.', and '/' with one exception -- the delimiter character is used for matching against child paths as explained above. It is assumed that {} globs have already been expanded before constructing this object.
-
-
Constructor Summary
Constructors Constructor Description WildcardPath(String parentGlobPath, String wildcardPath, char delim)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringbuildRegex(String wildcardPath, char delim)booleanequals(Object o)StringgetOriginalPattern()StringgetParentGlobPath()inthashCode()booleanmatches(String path)StringtoString()
-