public static NullOrdering defaultNullOrder(int order, Configuration hiveConf) {
    if (order == ASCENDING_CODE) {
      return defaultNullOrder(hiveConf);
    }

    return defaultNullsLast(!HiveConf.getBoolVar(hiveConf, HiveConf.ConfVars.HIVE_DEFAULT_NULLS_LAST));
  }
Enum for converting different Null ordering description types.
ql/src/java/org/apache/hadoop/hive/ql/util/NullOrdering.java