public boolean canReuseSession() {
    return !operations.contains(Operation.NEW_SESSION);
  }
Operations present in a given file/test.
itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestResultProcessor.java