Examples of HiveQueryOutputBo


Examples of com.dianping.cosmos.hive.client.bo.HiveQueryOutputBo

    history.setUsername(input.getUsername());
    history.setAddtime(new Date(input.getTimestamp()));
    history.setFilename(resultLocation);
    queryHistoryService.insertQueryHistory(history);
   
    HiveQueryOutputBo bo = result.toHiveQueryOutputBo();
    return bo;
  }
View Full Code Here

Examples of com.dianping.cosmos.hive.client.bo.HiveQueryOutputBo

  public List<List<String>> getRowList() {
    return rowList;
  }
 
  public HiveQueryOutputBo toHiveQueryOutputBo(){
    HiveQueryOutputBo bo = new HiveQueryOutputBo();
   
    String[] fieldsSchema = new String[]{};
    if (titleList != null && titleList.size() > 0){
      fieldsSchema = titleList.toArray(new String[titleList.size()]);
    }
    bo.setFieldSchema(fieldsSchema);
    List<String[]> data = new ArrayList<String[]>();
   
    int rowCount = 0;
    if (rowList != null){
      rowCount = rowList.size();
    }
   
    for (int i = 0; i < rowCount; i++){
      int columnCount = rowList.get(i).size();
      data.add(rowList.get(i).toArray(new String[columnCount]));
    }
    bo.setData(data);
    bo.setErrorMsg(errorMessage);
    return bo;
  }
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.