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 2020/02/13 22:46:52 UTC
[incubator-datasketches-java] 01/02: interim update
This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch ThetaGetEstimate
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-java.git
commit 0d3bbc6c56c2ec882c9f868c33e29a3d3483c0c8
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Fri Feb 7 15:21:00 2020 -0800
interim update
---
.../java/org/apache/datasketches/WhichSketch.java | 37 ++++++++++++++++++++++
.../datasketches/theta/SingleItemSketch.java | 4 +--
2 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/datasketches/WhichSketch.java b/src/main/java/org/apache/datasketches/WhichSketch.java
new file mode 100644
index 0000000..e10bddc
--- /dev/null
+++ b/src/main/java/org/apache/datasketches/WhichSketch.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.datasketches;
+
+/**
+ * @author Lee Rhodes
+ */
+public class WhichSketch {
+
+ public static String whichSketch(final byte[] sketchBytes) {
+
+
+
+ return null;
+ }
+
+
+
+
+}
diff --git a/src/main/java/org/apache/datasketches/theta/SingleItemSketch.java b/src/main/java/org/apache/datasketches/theta/SingleItemSketch.java
index ef08498..2d56a12 100644
--- a/src/main/java/org/apache/datasketches/theta/SingleItemSketch.java
+++ b/src/main/java/org/apache/datasketches/theta/SingleItemSketch.java
@@ -66,14 +66,14 @@ public final class SingleItemSketch extends CompactSketch {
arr[1] = hash;
}
- //Internal Constructor.All checking has been done, give the relevant seed
+ //Internal Constructor.All checking has been done, given the relevant seed
SingleItemSketch(final long hash, final long seed) {
final long seedHash = computeSeedHash(seed) & 0xFFFFL;
arr[0] = (seedHash << 48) | PRE0_LO6 | ((long)SINGLEITEM_FLAG_MASK << 40);
arr[1] = hash;
}
- //All checking has been done, give the relevant seed
+ //All checking has been done, given the relevant seedHash
SingleItemSketch(final long hash, final short seedHash) {
final long seedH = seedHash & 0xFFFFL;
arr[0] = (seedH << 48) | PRE0_LO6 | ((long)SINGLEITEM_FLAG_MASK << 40);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org