use of org.apache.phoenix.execute.visitor.ByteCountVisitor in project phoenix by apache.
the class SortMergeJoinPlan method getCost.
@Override
public Cost getCost() {
Double byteCount = this.accept(new ByteCountVisitor());
if (byteCount == null) {
return Cost.UNKNOWN;
}
Cost cost = new Cost(0, 0, byteCount);
return cost.plus(lhsPlan.getCost()).plus(rhsPlan.getCost());
}
Aggregations