2018.4.23

2018.4.23

if(whereAttrName==null){
    //没有选择条件
    Iterator<Row> iterator = currentTable.iterator();
    while(iterator.hasNext()){
        Row currentRow = iterator.next();
        ArrayList<String> tmpRow = new ArrayList<>();
        String partRow = "";
        for(int i=0;i<attrIndices.size()-1;i++){
            int index = attrIndices.get(i);
            partRow+=currentRow.getEntries().get(index).toString()+", ";
        }
        partRow+=currentRow.getEntries().get(attrIndices.size()-1).toString();
        tmpRow.add(partRow);
        resp.rowList.add(tmpRow);
    }
}

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/swy_swy_swy/article/details/106202184
今日推荐