From e06ff13396c9905fb63d3e84f70c64690880b72d Mon Sep 17 00:00:00 2001 From: Cheng Lian Date: Wed, 20 Jan 2016 19:00:29 -0800 Subject: [PATCH] Removes unused CountMinSketchImpl constructor --- .../apache/spark/util/sketch/CountMinSketchImpl.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/common/sketch/src/main/java/org/apache/spark/util/sketch/CountMinSketchImpl.java b/common/sketch/src/main/java/org/apache/spark/util/sketch/CountMinSketchImpl.java index 0fbf280e98e52..e9fdbe3a86862 100644 --- a/common/sketch/src/main/java/org/apache/spark/util/sketch/CountMinSketchImpl.java +++ b/common/sketch/src/main/java/org/apache/spark/util/sketch/CountMinSketchImpl.java @@ -51,16 +51,6 @@ public CountMinSketchImpl(double eps, double confidence, int seed) { initTablesWith(depth, width, seed); } - public CountMinSketchImpl(int depth, int width, long totalCount, long[] hashA, long[][] table) { - this.depth = depth; - this.width = width; - this.eps = 2.0 / width; - this.confidence = 1 - 1 / Math.pow(2, depth); - this.hashA = hashA; - this.table = table; - this.totalCount = totalCount; - } - private void initTablesWith(int depth, int width, int seed) { this.table = new long[depth][width]; this.hashA = new long[depth];