@Override
        public TableResult build() {
            Long totalResults = this.totalResults;
            if (totalResults == null && rows != null) {
                totalResults = (long) rows.size();
            }
            return new TableResult(componentId, columns, rows, resultRange, totalResults, errors);
        }
Builder for constructing a {@link TableResult tableResult}
stroom-query/stroom-query-api/src/main/java/stroom/query/api/TableResult.java