Class SimpleGlobPattern
java.lang.Object
org.hibernate.search.util.common.pattern.spi.SimpleGlobPattern
A simple glob pattern implementation that only supports the
*
wildcard.
Crucially, this implementation:
- does not rely on regexps and thus does not require any escaping of the pattern string;
- allows easily prepending a literal to a given pattern, which is convenient when working with index schemas.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleGlobPattern
boolean
protected abstract boolean
protected abstract int
prependLiteral
(String literal) abstract String
-
Method Details
-
compile
-
matches
-
prependLiteral
-
prependMany
-
toLiteral
-
toPatternString
-
minLength
protected abstract int minLength() -
matches
-