当前位置: 首页>>代码示例>>Java>>正文


Java ImmutableNullableList.of方法代码示例

本文整理汇总了Java中org.apache.calcite.util.ImmutableNullableList.of方法的典型用法代码示例。如果您正苦于以下问题:Java ImmutableNullableList.of方法的具体用法?Java ImmutableNullableList.of怎么用?Java ImmutableNullableList.of使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.calcite.util.ImmutableNullableList的用法示例。


在下文中一共展示了ImmutableNullableList.of方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: get

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
public DataSource get(String url, String driverClassName) {
    // Get data source objects from a cache, so that we don't have to sniff
    // out what kind of database they are quite as often.
    final List<String> key =
            ImmutableNullableList.of(url, driverClassName);
    DataSource dataSource = cache.apply(key);
    LOG.info("get DataSource:" + dataSource + ", " + url + " " + driverClassName);
    return dataSource;
}
 
开发者ID:bitnine-oss,项目名称:octopus,代码行数:10,代码来源:JdbcUtils.java

示例2: get

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
public DataSource get(String url, String driverClassName,
    String username, String password) {
  // Get data source objects from a cache, so that we don't have to sniff
  // out what kind of database they are quite as often.
  final List<String> key =
      ImmutableNullableList.of(url, username, password, driverClassName);
  return cache.getUnchecked(key);
}
 
开发者ID:apache,项目名称:calcite,代码行数:9,代码来源:JdbcUtils.java

示例3: collectOperandTypes

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
private List<RelDataType> collectOperandTypes(
    SqlValidator validator,
    SqlValidatorScope scope,
    SqlCall call) {
  List<RelDataType> argTypes =
      SqlTypeUtil.deriveAndCollectTypes(
          validator, scope, call.getOperandList());
  return ImmutableNullableList.of(
      argTypes.get(VALUE_OPERAND),
      argTypes.get(LOWER_OPERAND),
      argTypes.get(UPPER_OPERAND));
}
 
开发者ID:apache,项目名称:calcite,代码行数:13,代码来源:SqlBetweenOperator.java

示例4: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
@Override public List<SqlNode> getOperandList() {
  return ImmutableNullableList.<SqlNode>of(table);
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:4,代码来源:SqlForgetTable.java

示例5: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
@Override
public List<SqlNode> getOperandList() {
  return ImmutableNullableList.of(tblName, fieldList, location, properties,
                                  query);
}
 
开发者ID:apache,项目名称:beam,代码行数:6,代码来源:SqlCreateTable.java

示例6: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
@Override
public List<SqlNode> getOperandList() {
    return ImmutableNullableList.of(functionName, className);
}
 
开发者ID:hortonworks,项目名称:streamline,代码行数:5,代码来源:SqlCreateFunction.java

示例7: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
@Override
public List<SqlNode> getOperandList() {
  return ImmutableNullableList.of(tblName, fieldList, inputFormatClass,
                                  outputFormatClass, location, properties,
                                  query);
}
 
开发者ID:hortonworks,项目名称:streamline,代码行数:7,代码来源:SqlCreateTable.java

示例8: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
public List<SqlNode> getOperandList() {
  return ImmutableNullableList.of((SqlNode) identifier);
}
 
开发者ID:qubole,项目名称:quark,代码行数:4,代码来源:SqlDropQuark.java

示例9: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
public List<SqlNode> getOperandList() {
  return ImmutableNullableList.of(likePattern);
}
 
开发者ID:qubole,项目名称:quark,代码行数:4,代码来源:SqlShowQuark.java

示例10: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
public List<SqlNode> getOperandList() {
  return ImmutableNullableList.of(targetColumnList,
      sourceExpressionList, identifier);
}
 
开发者ID:qubole,项目名称:quark,代码行数:5,代码来源:SqlAlterQuark.java

示例11: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
@Override public List<SqlNode> getOperandList() {
  return ImmutableNullableList.of(name, columnList);
}
 
开发者ID:apache,项目名称:calcite,代码行数:4,代码来源:SqlKeyConstraint.java

示例12: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
@Override public List<SqlNode> getOperandList() {
  return ImmutableNullableList.of(name, expression);
}
 
开发者ID:apache,项目名称:calcite,代码行数:4,代码来源:SqlCheckConstraint.java

示例13: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
public List<SqlNode> getOperandList() {
  return ImmutableNullableList.of(name, columnList, query);
}
 
开发者ID:apache,项目名称:calcite,代码行数:4,代码来源:SqlCreateView.java

示例14: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
@Override public List<SqlNode> getOperandList() {
  return ImmutableNullableList.<SqlNode>of(name);
}
 
开发者ID:apache,项目名称:calcite,代码行数:4,代码来源:SqlCreateSchema.java

示例15: getOperandList

import org.apache.calcite.util.ImmutableNullableList; //导入方法依赖的package包/类
@Override public List<SqlNode> getOperandList() {
  return ImmutableNullableList.of(tableRef, pattern, strictStart, strictEnd,
      patternDefList, measureList, after, subsetList, partitionList, orderList);
}
 
开发者ID:apache,项目名称:calcite,代码行数:5,代码来源:SqlMatchRecognize.java


注:本文中的org.apache.calcite.util.ImmutableNullableList.of方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。