Package org.apache.calcite.sql.validate
Class SqlNameMatchers
- java.lang.Object
-
- org.apache.calcite.sql.validate.SqlNameMatchers
-
public class SqlNameMatchers extends java.lang.Object
Helpers forSqlNameMatcher
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SqlNameMatchers.BaseMatcher
Partial implementation ofSqlNameMatcher
.private static class
SqlNameMatchers.LiberalNameMatcher
Matcher that remembers the requests that were made of it.
-
Field Summary
Fields Modifier and Type Field Description private static SqlNameMatchers.BaseMatcher
CASE_INSENSITIVE
private static SqlNameMatchers.BaseMatcher
CASE_SENSITIVE
-
Constructor Summary
Constructors Modifier Constructor Description private
SqlNameMatchers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlNameMatcher
liberal()
Creates a name matcher that can suggest corrections to what the user typed.static SqlNameMatcher
withCaseSensitive(boolean caseSensitive)
Returns a name matcher with the given case sensitivity.
-
-
-
Field Detail
-
CASE_SENSITIVE
private static final SqlNameMatchers.BaseMatcher CASE_SENSITIVE
-
CASE_INSENSITIVE
private static final SqlNameMatchers.BaseMatcher CASE_INSENSITIVE
-
-
Method Detail
-
withCaseSensitive
public static SqlNameMatcher withCaseSensitive(boolean caseSensitive)
Returns a name matcher with the given case sensitivity.
-
liberal
public static SqlNameMatcher liberal()
Creates a name matcher that can suggest corrections to what the user typed. It matches liberally (case-insensitively) and also records the last match.
-
-