Examples of TableFuncDef


Examples of com.sap.hadoop.windowing.query2.definition.TableFuncDef

   * @throws WindowingException
   */
  public static Partition createFirstPartitionForChain(QueryDef qDef, ObjectInspector oi,
      HiveConf hiveConf, boolean isMapSide) throws WindowingException
  {
    TableFuncDef tabDef = getFirstTableFunction(qDef);
    TableFunctionEvaluator tEval = tabDef.getFunction();
    String partClassName = tEval.getPartitionClass();
    int partMemSize = tEval.getPartitionMemSize();

    Partition part = null;
    SerDe serde = tabDef.getInput().getSerde();
    part = new Partition(partClassName, partMemSize, serde,
        (StructObjectInspector) oi);
    return part;

  }
View Full Code Here

Examples of com.sap.hadoop.windowing.query2.definition.TableFuncDef

   * input hive table.
   * @param qDef
   * @return
   */
  public static TableFuncDef getFirstTableFunction(QueryDef qDef){
    TableFuncDef tabDef = null;
    Iterator<QueryInputDef> it = TranslateUtils.iterateInputDefs(qDef, true);
    while(it.hasNext()){
      QueryInputDef qIn = it.next();
      if(qIn instanceof TableFuncDef){
        tabDef = (TableFuncDef) qIn;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.