public static boolean pivotResult(String functionName) throws SemanticException {
    WindowFunctionInfo windowInfo = getWindowFunctionInfo(functionName);
    if (windowInfo != null) {
      return windowInfo.isPivotResult();
    }
    return false;
  }
Both UDF and UDAF functions can imply order for analytical functions

@param functionName
         name of function
@return true if a GenericUDF or GenericUDAF exists for this name and implyOrder is true, false
        otherwise.
@throws SemanticException
ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java