Class WildcardUtil
java.lang.Object
com.databricks.jdbc.common.util.WildcardUtil
This class consists of utility functions with respect to wildcard strings that are required in
building SQL queries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanThis function checks if the input string is a "match anything" string i.estatic booleanstatic booleanstatic booleanisWildcard(String s) This function checks if the input string is a wildcard stringstatic StringjdbcPatternToHive(String pattern)
-
Constructor Details
-
WildcardUtil
public WildcardUtil()
-
-
Method Details
-
isMatchAnything
This function checks if the input string is a "match anything" string i.e. "*"- Parameters:
s- the input string- Returns:
- true if the input string is "*"
-
isNullOrEmpty
-
isNullOrWildcard
-
isWildcard
This function checks if the input string is a wildcard string- Parameters:
s- the input string- Returns:
- true if the input string is wildcard
-
jdbcPatternToHive
-