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;
}