}
scan.addColumn(Bytes.toBytes(col.getFamilyName()),
Bytes.toBytes(col.getColumnName()));
}
FilterList filters = new FilterList();
// Filter columnNotNullFilter = new SingleColumnValueFilter(
// Bytes.toBytes(info.getField().getFamily()),
// Bytes.toBytes(info.getField().getName()),
// CompareFilter.CompareOp.NOT_EQUAL,
// HConstants.EMPTY_BYTE_ARRAY
// );
for (ColumnStruct columnStruct : columnStructs) {
SingleColumnValueFilter filter = new SingleColumnValueFilter(
Bytes.toBytes(columnStruct.getFamilyName()),
Bytes.toBytes(columnStruct.getColumnName()),
ParserUtils.convertIntValueToCompareOp(columnStruct.getCompareOp()),
columnStruct.getValue());
filters.addFilter(filter);
}
scan.setFilter(filters);
String tableName = StorageTableNameBuilder.buildEntityTableName(plan.getTableDesc().getTableName());