Javadoc updates
diff --git a/src/main/java/com/yahoo/sketches/quantiles/HeapUnion.java b/src/main/java/com/yahoo/sketches/quantiles/HeapUnion.java
index dd24be8..dae7b54 100644
--- a/src/main/java/com/yahoo/sketches/quantiles/HeapUnion.java
+++ b/src/main/java/com/yahoo/sketches/quantiles/HeapUnion.java
@@ -100,7 +100,7 @@
return qs1;
}
- //myK > thatK
+ //qs1K > qs2K
HeapQuantilesSketch copyQS2 = HeapQuantilesSketch.copy(qs2);
HeapUnion.mergeInto(qs1, copyQS2);
return copyQS2;
diff --git a/src/main/java/com/yahoo/sketches/quantiles/QuantilesSketch.java b/src/main/java/com/yahoo/sketches/quantiles/QuantilesSketch.java
index 8f3088f..7b57683 100644
--- a/src/main/java/com/yahoo/sketches/quantiles/QuantilesSketch.java
+++ b/src/main/java/com/yahoo/sketches/quantiles/QuantilesSketch.java
@@ -315,31 +315,6 @@
*/
public abstract String toString(boolean sketchSummary, boolean dataDetail);
- //Merging etc
-
-// /**
-// * Merges the given sketch into this one.
-// * Merges the source sketch into this sketch that can have a smaller value of K.
-// * However, it is required that the ratio of the two K values be a power of 2.
-// * I.e., source.getK() = this.getK() * 2^(nonnegative integer).
-// * The source is not modified.
-// *
-// * @param source the given source sketch
-// */
-// public void merge(QuantilesSketch source) {
-// mergeInto(source, this);
-// }
-//
-// /**
-// * Merges the source sketch into the target sketch that can have a smaller value of K.
-// * However, it is required that the ratio of the two K values be a power of 2.
-// * I.e., source.getK() = target.getK() * 2^(nonnegative integer).
-// * The source is not modified.
-// *
-// * @param source The source sketch
-// * @param target The target sketch
-// */
-// public abstract void mergeInto(QuantilesSketch source, QuantilesSketch target);
/**
* From an existing sketch, this creates a new sketch that can have a smaller value of K.
diff --git a/src/main/java/com/yahoo/sketches/quantiles/Union.java b/src/main/java/com/yahoo/sketches/quantiles/Union.java
index 7e2f511..ca3b87e 100644
--- a/src/main/java/com/yahoo/sketches/quantiles/Union.java
+++ b/src/main/java/com/yahoo/sketches/quantiles/Union.java
@@ -65,12 +65,22 @@
public abstract QuantilesSketch getResult();
/**
- * Resets this Union to its virgin state.
+ * Resets this Union to a virgin state.
*/
public abstract void reset();
+ /**
+ * Returns summary information about the backing sketch.
+ */
@Override
public abstract String toString();
+
+ /**
+ * Returns summary information about the backing sketch. Used for debugging.
+ * @param sketchSummary if true includes sketch summary
+ * @param dataDetail if true includes data detail
+ * @return summary information about the sketch.
+ */
public abstract String toString(boolean sketchSummary, boolean dataDetail);
}