Package org.apache.calcite.jdbc
Class JavaCollation
java.lang.Object
org.apache.calcite.sql.SqlCollation
org.apache.calcite.jdbc.JavaCollation
- All Implemented Interfaces:
Serializable
Collation that uses a specific
Collator
for comparison.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.sql.SqlCollation
SqlCollation.Coercibility
-
Field Summary
Fields inherited from class org.apache.calcite.sql.SqlCollation
COERCIBLE, collationName, IMPLICIT, locale, strength, wrappedCharset
-
Constructor Summary
ConstructorDescriptionJavaCollation
(SqlCollation.Coercibility coercibility, Locale locale, Charset charset, int strength) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
generateCollationName
(Charset charset) @Nullable Collator
Returns theCollator
to compare values having the current collation, ornull
if no specificCollator
is needed, in which caseString.compareTo(java.lang.String)
will be used.Methods inherited from class org.apache.calcite.sql.SqlCollation
equals, getCharset, getCoercibility, getCoercibilityDyadic, getCoercibilityDyadicComparison, getCoercibilityDyadicOperator, getCoercibilityDyadicOperatorThrows, getCollationName, getLocale, hashCode, toString, unparse
-
Constructor Details
-
JavaCollation
public JavaCollation(SqlCollation.Coercibility coercibility, Locale locale, Charset charset, int strength)
-
-
Method Details
-
generateCollationName
- Overrides:
generateCollationName
in classSqlCollation
-
getCollator
Description copied from class:SqlCollation
Returns theCollator
to compare values having the current collation, ornull
if no specificCollator
is needed, in which caseString.compareTo(java.lang.String)
will be used.- Overrides:
getCollator
in classSqlCollation
-