本文整理了Java中org.apache.calcite.util.Util.getDefaultCharset()
方法的一些代码示例,展示了Util.getDefaultCharset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.getDefaultCharset()
方法的具体详情如下:
包路径:org.apache.calcite.util.Util
类名称: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));
内容来源于网络,如有侵权,请联系作者删除!