public static TableMeta createTempODPSTable(TableInfo tableMeta,int lifeCycle){
  TableMeta tempTable=new TableMeta();
  tempTable.setComment(tableMeta.getComments());
  tempTable.setLifeCycle(lifeCycle);
  String tableSchema=tableMeta.getTableSchema();
  String tableName=tableMeta.getTableName();
  tempTable.setTableName(generateTempTableName(tableSchema,tableName));
  List<FieldSchema> tempColumns=new ArrayList<FieldSchema>();
  List<ColumnInfo> columns=tableMeta.getColumns();
  for (  ColumnInfo column : columns) {
    FieldSchema tempColumn=new FieldSchema();
    tempColumn.setName(column.getName());
    tempColumn.setType(toODPSDataType(column.getDataType()));
    tempColumn.setComment(column.getComment());
    tempColumns.add(tempColumn);
  }
  tempTable.setCols(tempColumns);
  tempTable.setPartitionKeys(null);
  return tempTable;
}

public static TableMeta createTempODPSTable ( TableInfo tableMeta , int lifeCycle ) { TableMeta tempTable = new TableMeta ( ) ; tempTable . setComment ( tableMeta . getComments ( ) ) ; tempTable . setLifeCycle ( lifeCycle ) ; String tableSchema = tableMeta . getTableSchema ( ) ; String tableName = tableMeta . getTableName ( ) ; tempTable . setTableName ( generateTempTableName ( tableSchema , tableName ) ) ; List < FieldSchema > tempColumns = new ArrayList < FieldSchema > ( ) ; List < ColumnInfo > columns = tableMeta . getColumns ( ) ; for ( ColumnInfo column : columns ) { FieldSchema tempColumn = new FieldSchema ( ) ; tempColumn . setName ( column . getName ( ) ) ; tempColumn . setType ( toODPSDataType ( column . getDataType ( ) ) ) ; tempColumn . setComment ( column . getComment ( ) ) ; tempColumns . add ( tempColumn ) ; } tempTable . setCols ( tempColumns ) ; tempTable . setPartitionKeys ( null ) ; return tempTable ; }
create temporary odps table .
