Esempio n. 1
0
 public List<Double> averageColumnSizes(TableScan rel, RelMetadataQuery mq) {
   final List<RelDataTypeField> fields = rel.getRowType().getFieldList();
   final ImmutableList.Builder<Double> list = ImmutableList.builder();
   for (RelDataTypeField field : fields) {
     list.add(averageTypeValueSize(field.getType()));
   }
   return list.build();
 }
Esempio n. 2
0
 @Override
 public RelNode visit(TableScan scan) {
   scan.getCluster().setMetadataProvider(metadataProvider);
   return super.visit(scan);
 }