Package io.fluxcapacitor.common
Class SearchUtils
java.lang.Object
io.fluxcapacitor.common.SearchUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateTimeFormatterstatic final Stringstatic final Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectasIntegerOrString(String fieldName) static ObjectasPrimitive(Object value) static StringescapeFieldName(String fieldName) getGlobMatcher(String pattern) Converts a standard POSIX Shell globbing pattern into a regular expression pattern.static booleanstatic Stringstatic byte[]normalizeJson(byte[] data) static StringnormalizePath(String queryPath) splitInTerms(String query) static StringunescapeFieldName(String fieldName)
-
Field Details
-
letterOrNumber
- See Also:
-
termPattern
-
ISO_FULL
-
-
Constructor Details
-
SearchUtils
public SearchUtils()
-
-
Method Details
-
normalize
-
normalizeJson
public static byte[] normalizeJson(byte[] data) -
getGlobMatcher
Converts a standard POSIX Shell globbing pattern into a regular expression pattern. The result can be used with the standardjava.util.regexAPI to recognize strings which match the glob pattern.From ...
See also, the POSIX Shell language: ...
- Parameters:
pattern- A glob pattern.- Returns:
- A regex pattern to recognize the given glob pattern.
-
isInteger
-
asIntegerOrString
-
splitInTerms
-
asPrimitive
-
normalizePath
-
escapeFieldName
-
unescapeFieldName
-