Exemple #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();
 }
 @Override
 public RelNode visit(TableScan scan) {
   scan.getCluster().setMetadataProvider(metadataProvider);
   return super.visit(scan);
 }