Package org.apache.hadoop.hive.ql.plan.PTFDesc

Examples of org.apache.hadoop.hive.ql.plan.PTFDesc.OrderDef


  private OrderDef translate(ShapeDetails inpShape,
      OrderSpec spec,
      PartitionDef partitionDef) throws SemanticException {

    OrderDef def = new OrderDef();
    if (null == spec) {
      return def;
    }

    for (OrderExpression oExpr : spec.getExpressions())
    {
      OrderExpressionDef oexpDef = translate(inpShape, oExpr);
      def.addExpression(oexpDef);
    }

    return def;
  }
View Full Code Here


    if (wSpec.getArgs().size() > 0)
    {
      throw new SemanticException("Ranking Functions can take no arguments");
    }

    OrderDef oDef = wdwTFnDef.getOrder();
    ArrayList<OrderExpressionDef> oExprs = oDef.getExpressions();
    for (OrderExpressionDef oExpr : oExprs)
    {
      wFnDef.addArg(oExpr);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.plan.PTFDesc.OrderDef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.