2018.4.24

2018.4.24

for (Row currentRow : currentTable) {
    if (currentRow.getEntries().get(attrIndex).compareTo(new Entry(whereAttrValue)) == 0) {
        ArrayList<String> tmpRow = new ArrayList<>();
        StringBuilder partRow = new StringBuilder();
        for (int i = 0; i < attrIndices.size() - 1; i++) {
            int index = attrIndices.get(i);
            partRow.append(currentRow.getEntries().get(index).toString()).append(", ");
        }
        partRow.append(currentRow.getEntries().get(attrIndices.size() - 1).toString());
        tmpRow.add(partRow.toString());
        resp.rowList.add(tmpRow);
    }
    

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/swy_swy_swy/article/details/106202445