estimate.getClass().getSimpleName(), vertex.getClass().getSimpleName(),
estimate.touched_partitions, estimate.confidence, estimate.hashCode(),
(trace.val ? "\n"+vertex.debug() : "")));
Statement catalog_stmt = vertex.getCatalogItem();
PartitionSet partitions = vertex.getPartitions();
boolean readQuery = (catalog_stmt.getQuerytype() == QueryType.SELECT.getValue());
for (int partition : partitions.values()) {
if (estimate.isDoneProbabilitySet(partition) == false) {
estimate.setDoneProbability(partition, vertex.getDoneProbability(partition));
}
if (estimate.isWriteProbabilitySet(partition) == false) {
estimate.setWriteProbability(partition, vertex.getWriteProbability(partition));
}
(readQuery ? estimate.read_partitions : estimate.write_partitions).add(partition);
estimate.incrementTouchedCounter(partition);
estimate.touched_partitions.add(partition);
} // FOR
// Make sure that we update our probabilities for any partition that we've touched
// in the past but are not touching for this query
for (int partition : vertex.getPastPartitions()) {
if (partitions.contains(partition) == false) {
if (estimate.isDoneProbabilitySet(partition) == false) {
estimate.setDoneProbability(partition, vertex.getDoneProbability(partition));
}
if (estimate.isWriteProbabilitySet(partition) == false) {
estimate.setWriteProbability(partition, vertex.getWriteProbability(partition));