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


Java Statistics.of方法代码示例

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


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

示例1: buildStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
private Statistic buildStatistic() {
  if (stats != null || primaryKey == -1) {
    return stats;
  }
  Direction dir = primaryKeyMonotonicity == INCREASING ? ASCENDING : DESCENDING;
  RelFieldCollation collation = new RelFieldCollation(primaryKey, dir, NullDirection.UNSPECIFIED);
  return Statistics.of(fields.size(), ImmutableList.of(ImmutableBitSet.of(primaryKey)),
      ImmutableList.of(RelCollations.of(collation)));
}
 
开发者ID:hortonworks,项目名称:streamline,代码行数:10,代码来源:CompilerUtil.java

示例2: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
@Override
public Statistic getStatistic() {
    int counter = 0;
    for (IThreadStack threadStack : getThreadStacks()) {
        counter += threadStack.getStackFrames().length;
    }
    return Statistics.of(counter, ImmutableList.of(ImmutableBitSet.of(0, 1)));
}
 
开发者ID:vlsi,项目名称:mat-calcite-plugin,代码行数:9,代码来源:SnapshotThreadStacksTable.java

示例3: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
public Statistic getStatistic() {
  final List<ImmutableBitSet> keys = Lists.newArrayList();
  final Content content = supplier.get();
  for (Ord<Column> ord : Ord.zip(content.columns)) {
    if (ord.e.cardinality == content.size) {
      keys.add(ImmutableBitSet.of(ord.i));
    }
  }
  return Statistics.of(content.size, keys, content.collations);
}
 
开发者ID:apache,项目名称:calcite,代码行数:11,代码来源:ArrayTable.java

示例4: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
@Override
public Statistic getStatistic() {
    return Statistics.of(tableManager.getStats().getTablesize(),
        keys);
}
 
开发者ID:diennea,项目名称:herddb,代码行数:6,代码来源:CalcitePlanner.java

示例5: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
@Override
public Statistic getStatistic() {
  return Statistics.of(desc.getItemCount(), ImmutableList.of(), ImmutableList.of());
}
 
开发者ID:fineoio,项目名称:drill-dynamo-adapter,代码行数:5,代码来源:DrillDynamoTable.java

示例6: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
@Override
public Statistic getStatistic()
{
  return Statistics.of(100d, ImmutableList.<ImmutableBitSet>of(), RelCollations.createSingleton(0));
}
 
开发者ID:apache,项目名称:apex-malhar,代码行数:6,代码来源:ApexSQLTable.java

示例7: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
public Statistic getStatistic() {
  return Statistics.of(0d, ImmutableList.<ImmutableBitSet>of());
}
 
开发者ID:qubole,项目名称:quark,代码行数:4,代码来源:QuarkViewTable.java

示例8: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
@Override
public Statistic getStatistic() {
    List<ImmutableBitSet> keys = new ArrayList<ImmutableBitSet>();
    return Statistics.of(100, keys);
}
 
开发者ID:apache,项目名称:kylin,代码行数:6,代码来源:OLAPTable.java

示例9: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
@Override
public Statistic getStatistic() {
    return Statistics.of(references.size(), unique ? UNIQUE_KEYS_STATISTICS : NON_UNIQUE_KEYS_STATISTICS);
}
 
开发者ID:vlsi,项目名称:mat-calcite-plugin,代码行数:5,代码来源:TableFunctions.java

示例10: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
@Override
public Statistic getStatistic() {
    List<ImmutableBitSet> uniqueKeys = ImmutableList.of(ImmutableBitSet.of(0));
    return Statistics.of(classesList.getTotalObjects(), uniqueKeys);
}
 
开发者ID:vlsi,项目名称:mat-calcite-plugin,代码行数:6,代码来源:InstanceIdsByClassTable.java

示例11: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
@Override
public Statistic getStatistic() {
    return Statistics.of(references.size(), NON_UNIQUE_KEYS_STATISTICS);
}
 
开发者ID:vlsi,项目名称:mat-calcite-plugin,代码行数:5,代码来源:OutboundReferencesTable.java

示例12: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
public Statistic getStatistic() {
  return Statistics.of(list.size(), ImmutableList.<ImmutableBitSet>of());
}
 
开发者ID:apache,项目名称:calcite,代码行数:4,代码来源:ListTable.java

示例13: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
public Statistic getStatistic() {
  return Statistics.of(15D,
      ImmutableList.of(ImmutableBitSet.of(0)),
      ImmutableList.<RelCollation>of());
}
 
开发者ID:apache,项目名称:calcite,代码行数:6,代码来源:FrameworksTest.java

示例14: getStatistic

import org.apache.calcite.schema.Statistics; //导入方法依赖的package包/类
public Statistic getStatistic() {
  return Statistics.of(100d,
    ImmutableList.<ImmutableBitSet>of(),
    RelCollations.createSingleton(0));
}
 
开发者ID:apache,项目名称:calcite,代码行数:6,代码来源:StreamTest.java


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