Class StringUtils
java.lang.Object
org.elasticsearch.xpack.esql.core.util.StringUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcamelCaseToUnderscore(String string) findSimilar(String match, Iterable<String> potentialMatches) static booleanstatic booleanisQualified(String indexWildcard) static booleanisValidParamName(String value) static StringlikeToIndexWildcard(String pattern, char escape) Translates a like pattern to pattern for ES index name expression resolver.static StringlikeToJavaPattern(String pattern, char escape) static StringlikeToLuceneWildcard(String pattern, char escape) Translates a like pattern to a Lucene wildcard.static StringlikeToUnescaped(String pattern, char escape) static Stringordinal(int i) static doubleparseDouble(String string) static NumberparseIntegral(String string) static org.apache.lucene.util.BytesRefstatic longstatic StringqualifyAndJoinIndices(String cluster, String[] indices) splitQualifiedIndex(String indexName) static StringtoString(SearchSourceBuilder source) static StringunderscoreToLowerCamelCase(String string) static StringwildcardToJavaPattern(String pattern, char escape)
-
Field Details
-
EMPTY
- See Also:
-
NEW_LINE
- See Also:
-
SQL_WILDCARD
- See Also:
-
WILDCARD
- See Also:
-
EXCLUSION
- See Also:
-
-
Method Details
-
camelCaseToUnderscore
-
underscoreToLowerCamelCase
-
likeToJavaPattern
-
wildcardToJavaPattern
-
likeToLuceneWildcard
Translates a like pattern to a Lucene wildcard. This methods pays attention to the custom escape char which gets converted into \ (used by Lucene).% -> * _ -> ? escape character - can be 0 (in which case no regex gets escaped) or should be followed by % or _ (otherwise an exception is thrown)
-
likeToIndexWildcard
Translates a like pattern to pattern for ES index name expression resolver. Note the resolver only supports * (not ?) and has no notion of escaping. This is not really an issue since we don't allow * anyway in the pattern. -
likeToUnescaped
-
toString
-
findSimilar
-
parseDouble
- Throws:
InvalidArgumentException
-
parseLong
- Throws:
InvalidArgumentException
-
parseIntegral
- Throws:
InvalidArgumentException
-
parseIP
-
ordinal
-
splitQualifiedIndex
-
qualifyAndJoinIndices
-
isQualified
-
isInteger
-
isValidParamName
-