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
ConstructorsConstructorDescriptionJavaCollation(SqlCollation.Coercibility coercibility, Locale locale, Charset charset, int strength) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgenerateCollationName(Charset charset) @Nullable CollatorReturns theCollatorto compare values having the current collation, ornullif no specificCollatoris 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:
generateCollationNamein classSqlCollation
-
getCollator
Description copied from class:SqlCollationReturns theCollatorto compare values having the current collation, ornullif no specificCollatoris needed, in which caseString.compareTo(java.lang.String)will be used.- Overrides:
getCollatorin classSqlCollation
-