Skip to content
Permalink
Browse files
Merge pull request #60 from apache/RemoveUnusedImports
Remove unused imports
  • Loading branch information
leerho committed May 9, 2020
2 parents 8dd5e0e + 33482b9 commit e7ca021bfd6a2201c9caf80b22b557ac9f40eab7
Showing 8 changed files with 12 additions and 30 deletions.
@@ -38,7 +38,7 @@
/**
* Tests the MurmurHash3 class.
*/
@SuppressWarnings({ "unused", "unchecked", "javadoc" })
@SuppressWarnings({"unchecked", "javadoc" })
public class MurmurHash3Test {
private static final TupleFactory mTupleFactory = TupleFactory.getInstance();

@@ -34,9 +34,6 @@
import org.testng.Assert;
import org.testng.annotations.Test;

import org.apache.datasketches.pig.theta.AexcludeB;
import org.apache.datasketches.pig.theta.Estimate;

@SuppressWarnings("javadoc")
public class AexcludeBTest {

@@ -28,6 +28,9 @@

import java.io.IOException;

import org.apache.datasketches.SketchesArgumentException;
import org.apache.datasketches.Util;
import org.apache.datasketches.theta.Sketch;
import org.apache.pig.Accumulator;
import org.apache.pig.EvalFunc;
import org.apache.pig.FuncSpec;
@@ -42,12 +45,6 @@
import org.testng.Assert;
import org.testng.annotations.Test;

import org.apache.datasketches.SketchesArgumentException;
import org.apache.datasketches.Util;
import org.apache.datasketches.pig.theta.DataToSketch;
import org.apache.datasketches.pig.theta.Estimate;
import org.apache.datasketches.theta.Sketch;

@SuppressWarnings("javadoc")
public class DataToSketchTest {
private String udfName = "org.apache.datasketches.pig.theta.DataToSketch";
@@ -38,8 +38,6 @@
import org.testng.Assert;
import org.testng.annotations.Test;

import org.apache.datasketches.pig.theta.ErrorBounds;

@SuppressWarnings("javadoc")
public class ErrorBoundsTest {

@@ -91,9 +89,9 @@ public void testEstModeBounds() throws IOException {
double epsilon2SD = 2.0 / Math.sqrt(2 * nomEntries);

//System.out.println(lb+"\t"+est+"\t"+ub);
assertTrue(((2 * nomEntries) < ub) && ((2 * nomEntries) > lb));
assertTrue(Math.abs((ub / (est + (epsilon2SD * est))) - 1) < .01);
assertTrue(Math.abs((lb / (est - (epsilon2SD * est))) - 1) < .01);
assertTrue(2 * nomEntries < ub && 2 * nomEntries > lb);
assertTrue(Math.abs(ub / (est + epsilon2SD * est) - 1) < .01);
assertTrue(Math.abs(lb / (est - epsilon2SD * est) - 1) < .01);
}

@Test
@@ -115,9 +113,9 @@ public void testEstModeBoundsWithSeed() throws IOException {
double epsilon2SD = 2.0 / Math.sqrt(2 * nomEntries);

//System.out.println(lb+"\t"+est+"\t"+ub);
assertTrue(((2 * nomEntries) < ub) && ((2 * nomEntries) > lb));
assertTrue(Math.abs((ub / (est + (epsilon2SD * est))) - 1) < .01);
assertTrue(Math.abs((lb / (est - (epsilon2SD * est))) - 1) < .01);
assertTrue(2 * nomEntries < ub && 2 * nomEntries > lb);
assertTrue(Math.abs(ub / (est + epsilon2SD * est) - 1) < .01);
assertTrue(Math.abs(lb / (est - epsilon2SD * est) - 1) < .01);
}

@Test
@@ -32,8 +32,6 @@
import org.apache.pig.data.TupleFactory;
import org.testng.annotations.Test;

import org.apache.datasketches.pig.theta.Estimate;

@SuppressWarnings("javadoc")
public class EstimateTest {

@@ -27,6 +27,7 @@

import java.io.IOException;

import org.apache.datasketches.SketchesStateException;
import org.apache.pig.Accumulator;
import org.apache.pig.EvalFunc;
import org.apache.pig.data.BagFactory;
@@ -39,10 +40,6 @@
import org.testng.Assert;
import org.testng.annotations.Test;

import org.apache.datasketches.SketchesStateException;
import org.apache.datasketches.pig.theta.Estimate;
import org.apache.datasketches.pig.theta.Intersect;

@SuppressWarnings("javadoc")
public class IntersectTest {

@@ -33,8 +33,6 @@
import org.apache.pig.data.TupleFactory;
import org.testng.annotations.Test;

import org.apache.datasketches.pig.theta.SketchToString;

@SuppressWarnings("javadoc")
public class SketchToStringTest {

@@ -27,6 +27,7 @@

import java.io.IOException;

import org.apache.datasketches.SketchesArgumentException;
import org.apache.pig.Accumulator;
import org.apache.pig.EvalFunc;
import org.apache.pig.data.BagFactory;
@@ -39,10 +40,6 @@
import org.testng.Assert;
import org.testng.annotations.Test;

import org.apache.datasketches.SketchesArgumentException;
import org.apache.datasketches.pig.theta.Estimate;
import org.apache.datasketches.pig.theta.Union;

@SuppressWarnings("javadoc")
public class UnionTest {
// private String udfName = "org.apache.datasketches.pig.theta.SketchUnions";

0 comments on commit e7ca021

Please sign in to comment.