Package com.sap.hadoop.windowing.query2.translate

Examples of com.sap.hadoop.windowing.query2.translate.InputTranslation


    throw new WindowingException("No Order by specification on Function: " + tblFnDef.getSpec());
  }
 
  public static WindowDef translateWindowSpec(QueryDef qDef, InputInfo iInfo, WindowFunctionSpec wFnSpec) throws WindowingException
  {
    WindowSpec wSpec = wFnSpec.getWindowSpec();
   
    if ( wSpec == null ) return null;
   
    WindowFunctionInfo wFnInfo = FunctionRegistry.getWindowFunctionInfo(wFnSpec.getName());
    String desc = wFnSpec.toString();
View Full Code Here


   
    /*
     * for now the Language only allows explicit specification of Partition & Order clauses.
     * Easy to allow references to a Global Window Spec.
     */
    WindowSpec wSpec = new WindowSpec();
    wSpec.setPartition(tFnSpec.getPartition());
    wSpec.setOrder(tFnSpec.getOrder());
    QueryInputDef iDef = tFnDef.getInput();
   
    if ( wSpec.getPartition() == null )
    {
      return null;
    }
   
    String desc = getInputDescription(qDef, tFnDef);
View Full Code Here

 
  static void fillInWindowSpec(QuerySpec qSpec, String sourceId, WindowSpec destWSpec) throws WindowingException
  {
    if ( sourceId != null )
    {
      WindowSpec sourceWSpec = qSpec.getWindowSpecs().get(sourceId);
      if (sourceWSpec == null)
      {
        throw new WindowingException(sprintf("Window Spec %s refers to an unknown source", destWSpec));
      }
     
      if ( destWSpec.getPartition() == null )
      {
        destWSpec.setPartition(sourceWSpec.getPartition());
      }
     
      if ( destWSpec.getOrder() == null )
      {
        destWSpec.setOrder(sourceWSpec.getOrder());
      }
     
      if ( destWSpec.getWindow() == null)
      {
        destWSpec.setWindow(sourceWSpec.getWindow());
      }
     
      fillInWindowSpec(qSpec, sourceWSpec.getSourceId(), destWSpec);
    }
  }
View Full Code Here

    QuerySpec qSpec = parse(query);
    QueryDef q = translator.translate(qSpec, this);
   
    ArrayList<QueryDef> componentQueries;
    executor.beforeComponentization(q, this);
    QueryComponentizer qC = new QueryComponentizer(q, this);
    componentQueries = qC.componentize();
   
    executor.beforeExecute(q, componentQueries, this);
    try
    {
      for(QueryDef cqDef : componentQueries)
View Full Code Here

   * @throws WindowingException
   */
  protected void reconstructQueryDef(HiveConf hiveConf) throws WindowingException
  {

    QueryDefVisitor qdd = new QueryDefDeserializer(hiveConf,
        inputObjInspectors[0]);
    QueryDefWalker qdw = new QueryDefWalker(qdd);
    qdw.walk(qDef);
  }
View Full Code Here

  }

  static void reconstructQueryDef(QueryDef qDef, HiveConf hiveConf)
      throws WindowingException
  {
    QueryDefVisitor qdd = new QueryDefDeserializer(hiveConf);
    QueryDefWalker qdw = new QueryDefWalker(qdd);
    qdw.walk(qDef);
  }
View Full Code Here

   * @throws WindowingException
   */
  protected void reconstructQueryDef(HiveConf hiveConf) throws WindowingException
  {

    QueryDefVisitor qdd = new QueryDefDeserializer(hiveConf,
        inputObjInspectors[0]);
    QueryDefWalker qdw = new QueryDefWalker(qdd);
    qdw.walk(qDef);
  }
View Full Code Here

  }

  static void reconstructQueryDef(QueryDef qDef, HiveConf hiveConf)
      throws WindowingException
  {
    QueryDefVisitor qdd = new QueryDefDeserializer(hiveConf);
    QueryDefWalker qdw = new QueryDefWalker(qdd);
    qdw.walk(qDef);
  }
View Full Code Here

  protected void reconstructQueryDef(HiveConf hiveConf) throws WindowingException
  {

    QueryDefVisitor qdd = new QueryDefDeserializer(hiveConf,
        inputObjInspectors[0]);
    QueryDefWalker qdw = new QueryDefWalker(qdd);
    qdw.walk(qDef);
  }
View Full Code Here

  static void reconstructQueryDef(QueryDef qDef, HiveConf hiveConf)
      throws WindowingException
  {
    QueryDefVisitor qdd = new QueryDefDeserializer(hiveConf);
    QueryDefWalker qdw = new QueryDefWalker(qdd);
    qdw.walk(qDef);
  }
View Full Code Here

TOP

Related Classes of com.sap.hadoop.windowing.query2.translate.InputTranslation

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.