From 0f32bb42d19a9a6b8a1ba7122de674f8d2afa77d Mon Sep 17 00:00:00 2001 From: tremblap Date: Wed, 9 Oct 2024 17:39:53 +0200 Subject: [PATCH] removes the word rows from ds.print and the interface of dsquery.limit --- include/clients/nrt/DataSetQueryClient.hpp | 6 +++--- include/data/FluidDataSet.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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..c04d529fe 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 << size() << " points of " << pointSize() << " cols." << endl; if (size() < maxRows) { for (index r = 0; r < size(); r++)