public static FetchType getFetchType(short tFetchType) {
    for (FetchType fetchType : values()) {
      if (tFetchType == fetchType.toTFetchType()) {
        return fetchType;
      }
    }
    return QUERY_OUTPUT;
  }
FetchType indicates the type of fetchResults request.
It maps the TFetchType, which is generated from Thrift interface.
service/src/java/org/apache/hive/service/cli/FetchType.java