diff --git a/include/clients/nrt/DataSetQueryClient.hpp b/include/clients/nrt/DataSetQueryClient.hpp index ddaa1fce1..25dacd24f 100644 --- a/include/clients/nrt/DataSetQueryClient.hpp +++ b/include/clients/nrt/DataSetQueryClient.hpp @@ -144,10 +144,10 @@ class DataSetQueryClient : public FluidBaseClient, OfflineIn, OfflineOut return OK(); } - MessageResult limit(index rows) + MessageResult limit(index points) { - if (rows <= 0) return Error("invalid value"); - mAlgorithm.limit(rows); + if (points <= 0) return Error("invalid limit on the number of points"); + mAlgorithm.limit(points); return OK(); } diff --git a/include/data/FluidDataSet.hpp b/include/data/FluidDataSet.hpp index 08ca3a07c..d73d37202 100644 --- a/include/data/FluidDataSet.hpp +++ b/include/data/FluidDataSet.hpp @@ -170,7 +170,7 @@ class FluidDataSet using namespace std; if (size() == 0) return "{}"; ostringstream result; - result << endl << "rows: " << size() << " cols: " << pointSize() << endl; + result << endl << "points:" << size() << " cols:" << pointSize() << endl; if (size() < maxRows) { for (index r = 0; r < size(); r++) diff --git a/tests/data/approval_tests/TestFluidDataSet.FluidDataSet_prints_consistent_summaries_for_approval.bigger.approved.txt b/tests/data/approval_tests/TestFluidDataSet.FluidDataSet_prints_consistent_summaries_for_approval.bigger.approved.txt index 87022a7eb..63a78ec18 100644 --- a/tests/data/approval_tests/TestFluidDataSet.FluidDataSet_prints_consistent_summaries_for_approval.bigger.approved.txt +++ b/tests/data/approval_tests/TestFluidDataSet.FluidDataSet_prints_consistent_summaries_for_approval.bigger.approved.txt @@ -1,5 +1,5 @@ -rows: 100 cols: 100 +points:100 cols:100 0 0 1 2 ... 97 98 99 0 100 101 102 ... 197 198 199 0 200 201 202 ... 297 298 299 diff --git a/tests/data/approval_tests/TestFluidDataSet.FluidDataSet_prints_consistent_summaries_for_approval.small.approved.txt b/tests/data/approval_tests/TestFluidDataSet.FluidDataSet_prints_consistent_summaries_for_approval.small.approved.txt index 0db43d1ca..b35c6f6d2 100644 --- a/tests/data/approval_tests/TestFluidDataSet.FluidDataSet_prints_consistent_summaries_for_approval.small.approved.txt +++ b/tests/data/approval_tests/TestFluidDataSet.FluidDataSet_prints_consistent_summaries_for_approval.small.approved.txt @@ -1,5 +1,5 @@ -rows: 2 cols: 5 +points:2 cols:5 zero 0 1 2 3 4 one 5 6 7 8 9