Package org.apache.hadoop.hive.ql.parse.WindowingSpec

Examples of org.apache.hadoop.hive.ql.parse.WindowingSpec.RangeBoundarySpec


      vbDef.setExpressionDef(exprDef);
      return vbDef;
    }
    else if (bndSpec instanceof RangeBoundarySpec)
    {
      RangeBoundarySpec rBndSpec = (RangeBoundarySpec) bndSpec;
      RangeBoundaryDef rbDef = new RangeBoundaryDef();
      rbDef.setAmt(rBndSpec.getAmt());
      rbDef.setDirection(rBndSpec.getDirection());
      return rbDef;
    }
    else if (bndSpec instanceof CurrentRowSpec)
    {
      CurrentRowDef cbDef = new CurrentRowDef();
View Full Code Here


    return new WindowFrameSpec(start, end);
  }

  private BoundarySpec processBoundary(int frameType, ASTNode nodethrows SemanticException {
    BoundarySpec bs = frameType == HiveParser.TOK_WINDOWRANGE ?
        new RangeBoundarySpec() : new ValueBoundarySpec();
    int type = node.getType();
    boolean hasAmt = true;

    switch(type)
    {
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.parse.WindowingSpec.RangeBoundarySpec

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.