public static NullOrdering fromToken(int token) {
    for (NullOrdering nullOrdering : NullOrdering.values()) {
      if (nullOrdering.token == token) {
        return nullOrdering;
      }
    }
    throw new EnumConstantNotPresentException(NullOrdering.class, "No enum constant present with token " + token);
  }
Enum for converting different Null ordering description types.
ql/src/java/org/apache/hadoop/hive/ql/util/NullOrdering.java