From 6728db3c049257fab51f3daa112cfa56c4a84cd8 Mon Sep 17 00:00:00 2001 From: Loredana Liccardo Date: Fri, 12 Sep 2014 12:07:29 +0000 Subject: [PATCH] modification applied to the smartSampleOnTable method of class Sampler. If a table has o row return the exception with message "The table has 0 rows" git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-access/DatabasesResourcesManager@99778 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../java/org/gcube/dataaccess/databases/sampler/Sampler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/dataaccess/databases/sampler/Sampler.java b/src/main/java/org/gcube/dataaccess/databases/sampler/Sampler.java index b8669d4..05e0dc8 100644 --- a/src/main/java/org/gcube/dataaccess/databases/sampler/Sampler.java +++ b/src/main/java/org/gcube/dataaccess/databases/sampler/Sampler.java @@ -335,7 +335,7 @@ public class Sampler { if (NumRows == 0) { throw new Exception( - "The table has not rows. Smart Sample operation not possible"); + "The table has 0 rows"); } // // computation of the iterations number