use of org.apache.hadoop.hive.ql.optimizer.signature.OpTreeSignature in project hive by apache.
the class SimpleRuntimeStatsSource method lookup.
@Override
public Optional<OperatorStats> lookup(Operator<?> op) {
try {
OpTreeSignature sig = OpTreeSignature.of(op);
List<OperatorStats> v = pm.lookupAll(OperatorStats.class, sig);
if (v.size() > 0) {
return Optional.of(v.get(0));
}
return Optional.empty();
} catch (NoSuchElementException | IllegalArgumentException iae) {
return Optional.empty();
}
}
Aggregations