private static LlapIODescriptor deriveLlapIoDescString(boolean isLlapOn, boolean canWrapAny,
      boolean hasPathToPartInfo, boolean hasLlap, boolean hasNonLlap, boolean hasAcid,
      boolean hasCacheOnly) {
    if (!isLlapOn) {
      return LlapIODescriptor.DISABLED; // LLAP IO is off, don't output.
    }
    if (!canWrapAny && !hasCacheOnly) {
      return LlapIODescriptor.NO_INPUTS; //"no inputs"; // Cannot use with input formats.
    }
    if (!hasPathToPartInfo) {
      return LlapIODescriptor.UNKNOWN; //"unknown"; // No information to judge.
    }
    int varieties = (hasAcid ? 1 : 0) + (hasLlap ? 1 : 0) + (hasCacheOnly ? 1 : 0) + (hasNonLlap ? 1 : 0);
    if (varieties > 1) {
      return LlapIODescriptor.SOME_INPUTS; //"some inputs"; // Will probably never actually happen.
    }
    if (hasAcid) {
      return LlapIODescriptor.ACID; //"may be used (ACID table)";
    }
    if (hasLlap) {
      return LlapIODescriptor.ALL_INPUTS;
    }
    if (hasCacheOnly) {
      return LlapIODescriptor.CACHE_ONLY;
    }
    return LlapIODescriptor.NO_INPUTS;
  }
Derive additional attributes to be rendered by EXPLAIN.
TODO: this method is relied upon by custom input formats to set jobconf properties.
      This is madness? - This is Hive Storage Handlers!
ql/src/java/org/apache/hadoop/hive/ql/plan/MapWork.java