jberragan commented on code in PR #206:
URL: 
https://github.com/apache/cassandra-analytics/pull/206#discussion_r3660990407


##########
cassandra-analytics-core/src/main/spark3/org/apache/cassandra/spark/sparksql/CassandraScanBuilder.java:
##########
@@ -146,4 +190,30 @@ private PartitionKeyFilter buildFilter(List<String> keys)
         AbstractMap.SimpleEntry<ByteBuffer, BigInteger> filterKey = 
dataLayer.bridge().getPartitionKey(dataLayer.cqlTable(), 
dataLayer.partitioner(), keys);
         return PartitionKeyFilter.create(filterKey.getKey(), 
filterKey.getValue());
     }
+
+    @Override
+    public Statistics estimateStatistics()
+    {
+        OptionalLong estimatedSizeInBytes = 
dataLayer.calculateTotalSSTableSize();
+        return new CassandraSourceStatistics(
+        estimatedSizeInBytes,
+        OptionalLong.empty(), // numRows - not calculated for now
+        Collections.emptyMap() // columnStats - empty for now
+        );
+    }
+
+    @Override
+    public CustomMetric[] supportedCustomMetrics()

Review Comment:
   Nice!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to