Skip to content
Permalink
Browse files
Remove unused imports
  • Loading branch information
leerho committed May 9, 2020
1 parent 8dd5e0e commit b3b504b24ac227121633a5ac64e12c24eb27a912
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 29 deletions.
@@ -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 b3b504b

Please sign in to comment.