org.apache.calcite.util.Util.getDefaultCharset()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(190)

本文整理了Java中org.apache.calcite.util.Util.getDefaultCharset()方法的一些代码示例,展示了Util.getDefaultCharset()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.getDefaultCharset()方法的具体详情如下:
包路径:org.apache.calcite.util.Util
类名称:Util
方法名:getDefaultCharset

Util.getDefaultCharset介绍

[英]Returns the Charset object representing the value of SaffronProperties#defaultCharset
[中]返回表示SaffronProperties#defaultCharset值的Charset对象

代码示例

代码示例来源:origin: apache/drill

private RelDataType getRelDataType(PrimitiveTypeInfo pTypeInfo, SqlTypeName typeName) {
 int maxLen = TypeInfoUtils.getCharacterLengthForType(pTypeInfo);
 RelDataType relDataType = typeFactory.createSqlType(typeName, maxLen);
 return typeFactory.createTypeWithCharsetAndCollation(relDataType, Util.getDefaultCharset(),
   SqlCollation.IMPLICIT);
}

代码示例来源:origin: Qihoo360/Quicksql

public Charset getDefaultCharset() {
 return Util.getDefaultCharset();
}

代码示例来源:origin: org.apache.calcite/calcite-core

public Charset getDefaultCharset() {
 return Util.getDefaultCharset();
}

代码示例来源:origin: qubole/quark

private RelDataTypeFactoryImpl.JavaType getStringJavaType() {
 RelDataTypeFactoryImpl relDataTypeFactoryImpl = new JavaTypeFactoryImpl();
 return relDataTypeFactoryImpl.new JavaType(String.class,
   !(String.class.isPrimitive()), Util.getDefaultCharset(), null);
}

代码示例来源:origin: org.apache.drill.exec/drill-java-exec

new SqlIdentifier(SHRD_COL_TABLE_SCHEMA, SqlParserPos.ZERO),
   SqlStdOperatorTable.EQUALS,
   SqlLiteral.createCharString(schemaPath, Util.getDefaultCharset().name(), SqlParserPos.ZERO)
 );
  SqlLiteral.createCharString(tableName, Util.getDefaultCharset().name(), SqlParserPos.ZERO));
     SqlStdOperatorTable.LOWER.createCall(SqlParserPos.ZERO, new SqlIdentifier(COLS_COL_COLUMN_NAME, SqlParserPos.ZERO)),
     SqlStdOperatorTable.EQUALS,
     SqlLiteral.createCharString(node.getColumn().toString().toLowerCase(), Util.getDefaultCharset().name(), SqlParserPos.ZERO));
} else if (node.getColumnQualifier() != null) {
 SqlNode columnQualifier = node.getColumnQualifier();

代码示例来源:origin: org.apache.drill.exec/drill-java-exec

new SqlIdentifier(SHRD_COL_TABLE_SCHEMA, SqlParserPos.ZERO),
SqlStdOperatorTable.EQUALS,
SqlLiteral.createCharString(drillSchema.getFullSchemaName(), Util.getDefaultCharset().name(), SqlParserPos.ZERO));

相关文章