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

Examples of org.apache.hadoop.hive.ql.plan.ptf.CurrentRowDef


      RangeBoundaryDef rbDef = new RangeBoundaryDef();
      rbDef.setAmt(rBndSpec.getAmt());
      rbDef.setDirection(rBndSpec.getDirection());
      return rbDef;
    } else if (bndSpec instanceof CurrentRowSpec) {
      CurrentRowDef cbDef = new CurrentRowDef();
      return cbDef;
    }
    throw new SemanticException("Unknown Boundary: " + bndSpec);
  }
View Full Code Here


  public static WindowFrameDef wdwFrame(int p, int f) {
    WindowFrameDef wFrmDef = new WindowFrameDef();
    BoundaryDef start, end;
    if (p == 0) {
      start = new CurrentRowDef();
    } else {
      RangeBoundaryDef startR = new RangeBoundaryDef();
      startR.setDirection(Direction.PRECEDING);
      startR.setAmt(p);
      start = startR;
    }

    if (f == 0) {
      end = new CurrentRowDef();
    } else {
      RangeBoundaryDef endR = new RangeBoundaryDef();
      endR.setDirection(Direction.FOLLOWING);
      endR.setAmt(f);
      end = endR;
View Full Code Here

      RangeBoundaryDef rbDef = new RangeBoundaryDef();
      rbDef.setAmt(rBndSpec.getAmt());
      rbDef.setDirection(rBndSpec.getDirection());
      return rbDef;
    } else if (bndSpec instanceof CurrentRowSpec) {
      CurrentRowDef cbDef = new CurrentRowDef();
      return cbDef;
    }
    throw new SemanticException("Unknown Boundary: " + bndSpec);
  }
View Full Code Here

      RangeBoundaryDef rbDef = new RangeBoundaryDef();
      rbDef.setAmt(rBndSpec.getAmt());
      rbDef.setDirection(rBndSpec.getDirection());
      return rbDef;
    } else if (bndSpec instanceof CurrentRowSpec) {
      CurrentRowDef cbDef = new CurrentRowDef();
      return cbDef;
    }
    throw new SemanticException("Unknown Boundary: " + bndSpec);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.plan.ptf.CurrentRowDef

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.