FetchResult fetchResult = blurResult.getFetchResult();
FetchRowResult rowResult = fetchResult.getRowResult();
if (rowResult == null) {
FetchRecordResult recordResult = fetchResult.getRecordResult();
String rowid = recordResult.getRowid();
Record record = recordResult.getRecord();
String family = record.getFamily();
if (record.getColumns() != null) {
for (Column column : record.getColumns()) {
addToTableDisplay(result, columnsLabels, tableDisplay, line, rowid, family, record.getRecordId(), column);
}
}
line++;
} else {
Row row = rowResult.getRow();
List<Record> records = row.getRecords();
if (records != null) {
for (Record record : records) {
if (record.getColumns() != null) {
for (Column column : record.getColumns()) {
addToTableDisplay(result, columnsLabels, tableDisplay, line, row.getId(), record.getFamily(),
record.getRecordId(), column);
}
}
line++;
}
}