summaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2018-06-05 21:45:31 -0400
committerGitHub <noreply@github.com>2018-06-05 21:45:31 -0400
commit6d44e17fccc44c377476247d9765fc573154097f (patch)
treedc9021c5443a65be1a258eff0854d6dcbddeceba /LICENSE
parent5290a32b395cf66d4bc1fa1b417a299b1006151b (diff)
downloadcouchdb-6d44e17fccc44c377476247d9765fc573154097f.tar.gz
Add _approx_count_distinct as a builtin reduce function (#1346)
This introduces a new builtin reduce function, which uses a HyperLogLog algorithm to estimate the number of distinct keys in the view index. The precision is currently fixed to 2^11 observables andtherefore uses approximately 1.5 KB of memory. It also introduces a finalize step which can be used to improve the efficiency of other builtin reduce functions going forward. Closes COUCHDB-2971
Diffstat (limited to 'LICENSE')
-rw-r--r--LICENSE24
1 files changed, 24 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
index a209352a0..6034c717e 100644
--- a/LICENSE
+++ b/LICENSE
@@ -2274,3 +2274,27 @@ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
+
+For the src/hyper component:
+
+The MIT License (MIT)
+
+Copyright (c) 2014 Game Analytics ApS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.