public void init(String query) {
    operations.clear();
    for (Operation op : Operation.values()) {
      if (op.existsIn(query)) {
        operations.add(op);
      }
    }
  }
Operations present in a given file/test.
itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestResultProcessor.java