You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2019/08/30 01:39:06 UTC
[incubator-datasketches-java] 01/02: Fix javadoc error
This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-java.git
commit 3c06db2a11ef2670318ff664f5fef7afef929092
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Thu Aug 29 18:37:18 2019 -0700
Fix javadoc error
---
src/main/java/org/apache/datasketches/hll/BaseHllSketch.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/datasketches/hll/BaseHllSketch.java b/src/main/java/org/apache/datasketches/hll/BaseHllSketch.java
index 760b97e..844f328 100644
--- a/src/main/java/org/apache/datasketches/hll/BaseHllSketch.java
+++ b/src/main/java/org/apache/datasketches/hll/BaseHllSketch.java
@@ -203,7 +203,7 @@ abstract class BaseHllSketch {
/**
* Serializes this sketch as a byte array in compact form. The compact form is smaller in size
* than the updatable form and read-only. It can be used in union operations as follows:
- * <pre>
+ * <pre>{@code
* Union union; HllSketch sk, sk2;
* int lgK = 12;
* sk = new HllSketch(lgK, TgtHllType.HLL_4); //can be 4, 6, or 8
@@ -218,7 +218,7 @@ abstract class BaseHllSketch {
* sk2 = HllSketch.heapify(arr);
* //OR, if used in an off-heap environment:
* sk2 = HllSketch.heapify(Memory.wrap(arr));
- * </pre>
+ * }</pre>
*
* <p>The sketch "wrapping" operation skips actual deserialization thus is quite fast. However,
* any attempt to update the derived HllSketch will result in a Read-only exception.
@@ -231,7 +231,7 @@ abstract class BaseHllSketch {
* the compact form. The use of this form is primarily in environments that support updating
* sketches in off-heap memory. If the sketch is constructed using HLL_8, sketch updating and
* union updating operations can actually occur in WritableMemory, which can be off-heap:
- * <pre>
+ * <pre>{@code
* Union union; HllSketch sk;
* int lgK = 12;
* sk = new HllSketch(lgK, TgtHllType.HLL_8) //must be 8
@@ -240,7 +240,7 @@ abstract class BaseHllSketch {
* WritableMemory wmem = WritableMemory.wrap(arr);
* //...
* union = Union.writableWrap(wmem); //no deserialization!
- * </pre>
+ * }</pre>
* @return this sketch as an updatable byte array.
*/
public abstract byte[] toUpdatableByteArray();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org