예제 #1
0
 public Double getMaxRowCount(Intersect rel, RelMetadataQuery mq) {
   // max row count is the smallest of the inputs
   Double rowCount = null;
   for (RelNode input : rel.getInputs()) {
     Double partialRowCount = mq.getMaxRowCount(input);
     if (rowCount == null || partialRowCount != null && partialRowCount < rowCount) {
       rowCount = partialRowCount;
     }
   }
   return rowCount;
 }
예제 #2
0
 public List<Double> averageColumnSizes(Intersect rel, RelMetadataQuery mq) {
   return mq.getAverageColumnSizes(rel.getInput(0));
 }