本文整理汇总了Java中org.apache.calcite.schema.Statistics类的典型用法代码示例。如果您正苦于以下问题:Java Statistics类的具体用法?Java Statistics怎么用?Java Statistics使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Statistics类属于org.apache.calcite.schema包,在下文中一共展示了Statistics类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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)));
}
示例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)));
}
示例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);
}
示例4: getStatistic
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
@Override
public Statistic getStatistic() {
return Statistics.UNKNOWN;
}
示例5: getStatistic
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
@Override
public Statistic getStatistic() {
return Statistics.of(tableManager.getStats().getTablesize(),
keys);
}
示例6: getStatistic
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
@Override
public Statistic getStatistic() {
return Statistics.of(desc.getItemCount(), ImmutableList.of(), ImmutableList.of());
}
示例7: getStatistic
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
/**
* Not used {@link Statistic} to optimize the plan.
*/
@Override
public Statistic getStatistic() {
return Statistics.UNKNOWN;
}
示例8: getStatistic
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
@Override
public Statistic getStatistic()
{
return Statistics.of(100d, ImmutableList.<ImmutableBitSet>of(), RelCollations.createSingleton(0));
}
示例9: getStatistic
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
public Statistic getStatistic() {
return Statistics.of(0d, ImmutableList.<ImmutableBitSet>of());
}
示例10: getStatistic
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
@Override
public Statistic getStatistic() {
List<ImmutableBitSet> keys = new ArrayList<ImmutableBitSet>();
return Statistics.of(100, keys);
}
示例11: 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);
}
示例12: 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);
}
示例13: getStatistic
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
@Override
public Statistic getStatistic() {
return Statistics.of(references.size(), NON_UNIQUE_KEYS_STATISTICS);
}
示例14: getStatistic
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
public Statistic getStatistic() {
return Statistics.UNKNOWN;
}
示例15: FieldTable
import org.apache.calcite.schema.Statistics; //导入依赖的package包/类
FieldTable(Field field, Type elementType, Enumerable<T> enumerable) {
this(field, elementType, enumerable, Statistics.UNKNOWN);
}