Examples of HiveTableDef


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

 
  private static String getTableAlias(QueryDef qDef, int inputNum, QueryInputDef inputDef) throws WindowingException
  {
    if ( inputDef instanceof HiveTableDef)
    {
      HiveTableDef hTbldef = (HiveTableDef) inputDef;
      String db = ((HiveTableSpec)hTbldef.getSpec()).getDbName();
      String tableName = ((HiveTableSpec)hTbldef.getSpec()).getTableName();
      return db + "." + tableName;
    }
    else if ( inputDef instanceof TableFuncDef)
    {
      return "ptf_" + inputNum;
View Full Code Here

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

  }

  private static HiveTableDef translate(QueryDef qDef, HiveTableSpec spec,
      HiveTableDef def) throws WindowingException
  {
    def = def == null ? new HiveTableDef() : def;
    HiveMetaStoreClient hiveMSC = qDef.getTranslationInfo()
        .getHiveMSClient();
    Hive hive = qDef.getTranslationInfo().getHive();

    def.setSpec(spec);
View Full Code Here

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

    {
      executor.execute(q, this);
    }
    finally
    {
      HiveTableDef hiveTable = q.getHiveTableDef();
      if ( hiveTable instanceof HiveQueryDef )
      {
        String tableName = hiveTable.getHiveTableSpec().getTableName();
        hiveQryExec.dropTable(tableName);
      }
     
    }
   
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.