@Override public Statistic getStatistic() { return stat != null ? stat : Statistics.of(rows.size(), ImmutableList.<ImmutableBitSet>of()); }
@Override public Statistic getStatistic() { List<ImmutableBitSet> keys = new ArrayList<ImmutableBitSet>(); return Statistics.of(100, keys); }
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))); }
/** Returns a statistic with a given row count, set of unique keys, * and collations. */ public static Statistic of(final double rowCount, final List<ImmutableBitSet> keys, final List<RelCollation> collations) { return of(rowCount, keys, ImmutableList.of(), collations); }
@Override public Statistic getStatistic() { List<ImmutableBitSet> keys = new ArrayList<ImmutableBitSet>(); return Statistics.of(100, keys); }
/** Returns a statistic with a given row count, set of unique keys, * and collations. */ public static Statistic of(final double rowCount, final List<ImmutableBitSet> keys, final List<RelCollation> collations) { return of(rowCount, keys, ImmutableList.of(), collations); }
public Statistic getStatistic() { return Statistics.of(0d, ImmutableList.<ImmutableBitSet>of()); } }
/** Returns a statistic with a given row count and set of unique keys. */ public static Statistic of(final double rowCount, final List<ImmutableBitSet> keys) { return of(rowCount, keys, ImmutableList.of(), ImmutableList.of()); }
public Statistic getStatistic() { return Statistics.of(0d, ImmutableList.<ImmutableBitSet>of()); }
@Override public Statistic getStatistic() { return stat != null ? stat : Statistics.of(rows.size(), ImmutableList.<ImmutableBitSet>of()); }
/** Returns a statistic with a given set of referential constraints. */ public static Statistic of(final List<RelReferentialConstraint> referentialConstraints) { return of(null, ImmutableList.of(), referentialConstraints, ImmutableList.of()); }
/** Returns a statistic with a given set of referential constraints. */ public static Statistic of(final List<RelReferentialConstraint> referentialConstraints) { return of(null, ImmutableList.of(), referentialConstraints, ImmutableList.of()); }
/** Returns a statistic with a given row count and set of unique keys. */ public static Statistic of(final double rowCount, final List<ImmutableBitSet> keys) { return of(rowCount, keys, ImmutableList.of(), ImmutableList.of()); }
public Statistic getStatistic() { return Statistics.of(list.size(), ImmutableList.of()); }
public Statistic getStatistic() { return Statistics.of(list.size(), ImmutableList.of()); }
public Statistic getStatistic() { final List<ImmutableBitSet> keys = new ArrayList<>(); 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); }
public Statistic getStatistic() { final List<ImmutableBitSet> keys = new ArrayList<>(); 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); }
public Statistic getStatistic() { return Statistics.of(200d, ImmutableList.of()); }
public Statistic getStatistic() { return Statistics.of(200d, ImmutableList.of()); }
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))); } }