Skip to content
Permalink
Browse files
Update LICENSE file.
  • Loading branch information
leerho committed Aug 2, 2019
1 parent 34a4f1d commit 8f5d89708bb9615e8cea766a4ae88bfbaa4a87a1
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 15 deletions.
74 LICENSE
@@ -200,3 +200,77 @@
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.

APACHE DataSketches-memory (INCUBATING):

Apache DataSketches-memory (incubating) includes a number of source files with
separate copyright notices and license terms. Your use of the source
code for these subcomponents is subject to the terms and
conditions of the following licenses.

Apache License version 2.0
================================

This product contains a method to create a dummy read-only ByteBuffer using unsafe
adapted from https://github.com/odnoklassniki/one-nio/blob/master/src/one/nio/mem/DirectMemory.java : wrap(...).
* src/main/java/org/apache/datasketches/memory/AccessByteBuffer.java : getDummyReadOnlyDirectByteBuffer(...)

This product contains code to implement and test the xxHash function
adapted from https://github.com/OpenHFT/Zero-Allocation-Hashing
* src/main/java/org/apache/datasketches/memory/XxHash64.java
* src/test/java/org/apache/datasketches/memory/XxHash64Test.java
* src/test/java/org/apache/datasketches/memory/XxHash64LoopingTest.java


Google Protobuf License:
================================

Copyright 2008 Google Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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.

Code generated by the Protocol Buffer compiler is owned by the owner
of the input file used when generating it. This code is not
standalone and requires a support library to be linked with it. This
support library is itself covered by the above license.

This product contains code for encoding, decoding and testing UTF8
adapted from https://github.com/protocolbuffers/protobuf.
* src/main/java/org/apache/datasketches/memory/Utf8.java
* src/test/java/org/apache/datasketches/memory/Utf8Test.java
* src/test/java/org/apache/datasketches/memory/IsValidUtf8TestUtil.java

Public Domain
================================
This product contains the text of Lincoln's Gettysburg Address which is used in various file tests.
This file is read-only and tested for its exact character sequence and cannot be appended with any additional text.
* src/test/java/org/apache/datasketches/memory/AllocateDirectMapMemoryTest.java
* src/test/java/org/apache/datasketches/memory/AllocateDirectWritableMapMemoryTest.java
* src/test/java/org/apache/datasketches/memory/MemoryTest.java
* src/test/java/org/apache/datasketches/memory/UtilTest.java


@@ -76,8 +76,8 @@ final class AccessByteBuffer {
}

/**
* This method is copied from https://github.com/odnoklassniki/one-nio/blob/
* 27c768cbd28ece949c299f2d437c9a0ebd874500/src/one/nio/mem/DirectMemory.java#L95
* This method is adapted from https://github.com/odnoklassniki/one-nio\
* /blob/master/src/one/nio/mem/DirectMemory.java : wrap(...). See LICENSE.
*/
static ByteBuffer getDummyReadOnlyDirectByteBuffer(final long address, final int capacity) {
final ByteBuffer buf = ZERO_READ_ONLY_DIRECT_BYTE_BUFFER.duplicate();
@@ -35,9 +35,9 @@
* <p>This is specifically designed to reduce the production of intermediate objects (garbage),
* thus significantly reducing pressure on the JVM Garbage Collector.
*
* <p>UTF-8 encoding/decoding is based on
* https://github.com/google/protobuf/blob/3e944aec9ebdf5043780fba751d604c0a55511f2/
* java/core/src/main/java/com/google/protobuf/Utf8.java
* <p>UTF-8 encoding/decoding is adapted from
* https://github.com/protocolbuffers/protobuf\
* /blob/master/java/core/src/main/java/com/google/protobuf/Utf8.java
*
* <p>Copyright 2008 Google Inc. All rights reserved.
* https://developers.google.com/protocol-buffers/
@@ -47,9 +47,11 @@
* <a href="http://www.opensource.org/licenses/bsd-license.php">
* http://www.opensource.org/licenses/bsd-license.php</a>
*
* <p>Portions of this code were leveraged from
* <a href="https://github.com/OpenHFT/Zero-Allocation-Hashing/blob/master/src/main/java/net/openhft/hashing/XxHash.java">
* OpenHFT/Zero-Allocation-Hashing</a>, which has an Apache 2 license as does this site.
* <p>Portions of this code were adapted from
* <a href="https://github.com/OpenHFT/Zero-Allocation-Hashing\
* /blob/master/src/main/java/net/openhft/hashing/XxHash.java">
* OpenHFT/Zero-Allocation-Hashing</a>,
* which has an Apache 2 license as does this site.
*
* @author Lee Rhodes
*/
@@ -21,8 +21,8 @@

/**
* Stripped down version of
* https://github.com/google/protobuf/blob/3e944aec9ebdf5043780fba751d604c0a55511f2/
* java/core/src/test/java/com/google/protobuf/IsValidUtf8TestUtil.java
* https://github.com/protocolbuffers/protobuf\
* /blob/master/java/core/src/test/java/com/google/protobuf/IsValidUtf8TestUtil.java
*
* Copyright 2008 Google Inc. All rights reserved.
* https://developers.google.com/protocol-buffers/
@@ -35,8 +35,8 @@

/**
* Adapted version of
* https://github.com/google/protobuf/blob/3e944aec9ebdf5043780fba751d604c0a55511f2/
* java/core/src/test/java/com/google/protobuf/DecodeUtf8Test.java
* https://github.com/protocolbuffers/protobuf\
* /blob/master/java/core/src/test/java/com/google/protobuf/DecodeUtf8Test.java
*
* Copyright 2008 Google Inc. All rights reserved.
* https://developers.google.com/protocol-buffers/
@@ -29,8 +29,9 @@
public class XxHash64LoopingTest {

/*
* This test is modeled from
* <a href="https://github.com/OpenHFT/Zero-Allocation-Hashing/blob/master/src/test/java/net/openhft/hashing/XxHashTest.java">
* This test is adapted from
* <a href="https://github.com/OpenHFT/Zero-Allocation-Hashing\
* /blob/master/src/test/java/net/openhft/hashing/XxHashTest.java">
* OpenHFT/Zero-Allocation-Hashing</a> to test hash compatibility with that implementation.
*/
@Test
@@ -78,7 +78,7 @@ public void byteArrChecks() {
}

/*
* This test is modeled from
* This test is adapted from
* <a href="https://github.com/OpenHFT/Zero-Allocation-Hashing/blob/master/src/test/java/net\
* /openhft/hashing/XxHashCollisionTest.java">
* OpenHFT/Zero-Allocation-Hashing</a> to test hash compatibility with that implementation.

0 comments on commit 8f5d897

Please sign in to comment.