Skip to content

Commit

Permalink
[license] Add license to orc copied files
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Mar 20, 2024
1 parent 532cd8f commit 218aa18
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 4 deletions.
8 changes: 8 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,14 @@ from http://iceberg.apache.org/ version 1.3.0
paimon-hive/paimon-hive-common/src/test/resources/hive-schema-3.1.0.derby.sql
from https://hive.apache.org/ version 3.1.0

paimon-format/src/main/java/org/apache/orc/impl/PhysicalFsWriter.java
paimon-format/src/main/java/org/apache/orc/impl/WriterImpl.java
paimon-format/src/main/java/org/apache/orc/impl/ZstdCodec.java
paimon-format/src/main/java/org/apache/orc/CompressionKind.java
paimon-format/src/main/java/org/apache/orc/OrcConf.java
paimon-format/src/main/java/org/apache/orc/OrcFile.java
from https://orc.apache.org/ version 2.0

MIT License
-----------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@

package org.apache.orc;

/* This file is based on source code from the ORC Project (http://orc.apache.org/), licensed by the Apache
* Software Foundation (ASF) under the Apache License, Version 2.0. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. */

/**
* An enumeration that lists the generic compression algorithms that can be applied to ORC files.
*
* <p>NOTE: The file was copied and modified to support zstd-jni. This feature is only supported in
* ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
*/
public enum CompressionKind {
NONE,
Expand Down
11 changes: 10 additions & 1 deletion paimon-format/src/main/java/org/apache/orc/OrcConf.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@
import java.util.List;
import java.util.Properties;

/** Define the configuration properties that Orc understands. */
/* This file is based on source code from the ORC Project (http://orc.apache.org/), licensed by the Apache
* Software Foundation (ASF) under the Apache License, Version 2.0. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. */

/**
* Define the configuration properties that Orc understands.
*
* <p>NOTE: The file was copied and modified to support zstd-jni. This feature is only supported in
* ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
*/
public enum OrcConf {
STRIPE_SIZE(
"orc.stripe.size",
Expand Down
11 changes: 10 additions & 1 deletion paimon-format/src/main/java/org/apache/orc/OrcFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@
import java.util.Map;
import java.util.Properties;

/** Contains factory methods to read or write ORC files. */
/* This file is based on source code from the ORC Project (http://orc.apache.org/), licensed by the Apache
* Software Foundation (ASF) under the Apache License, Version 2.0. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. */

/**
* Contains factory methods to read or write ORC files.
*
* <p>NOTE: The file was copied and modified to support zstd-jni. This feature is only supported in
* ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
*/
public class OrcFile {
private static final Logger LOG = LoggerFactory.getLogger(OrcFile.class);
public static final String MAGIC = "ORC";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,16 @@
import java.util.Map;
import java.util.TreeMap;

/** A orc PhysicalFsWriter. */
/* This file is based on source code from the ORC Project (http://orc.apache.org/), licensed by the Apache
* Software Foundation (ASF) under the Apache License, Version 2.0. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. */

/**
* An orc PhysicalFsWriter.
*
* <p>NOTE: The file was copied and modified to support zstd-jni. This feature is only supported in
* ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
*/
public class PhysicalFsWriter implements PhysicalWriter {
private static final Logger LOG = LoggerFactory.getLogger(PhysicalFsWriter.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
import java.util.TimeZone;
import java.util.TreeMap;

/* This file is based on source code from the ORC Project (http://orc.apache.org/), licensed by the Apache
* Software Foundation (ASF) under the Apache License, Version 2.0. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. */

/**
* An ORC file writer. The file is divided into stripes, which is the natural unit of work when
* reading. Each stripe is buffered in memory until the memory reaches the stripe size and then it
Expand All @@ -76,6 +80,9 @@
*
* <p>Caveat: the MemoryManager is created during WriterOptions create, that has to be confined to a
* single thread as well.
*
* <p>NOTE: The file was copied and modified to support zstd-jni. This feature is only supported in
* ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
*/
public class WriterImpl implements WriterInternal, MemoryManager.Callback {

Expand Down
11 changes: 10 additions & 1 deletion paimon-format/src/main/java/org/apache/orc/impl/ZstdCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@
import java.io.IOException;
import java.nio.ByteBuffer;

/** orc ZstdCodec. */
/* This file is based on source code from the ORC Project (http://orc.apache.org/), licensed by the Apache
* Software Foundation (ASF) under the Apache License, Version 2.0. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. */

/**
* orc ZstdCodec.
*
* <p>NOTE: The file was copied and modified to support zstd-jni. This feature is only supported in
* ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
*/
public class ZstdCodec implements CompressionCodec, DirectDecompressionCodec {
private ZstdOptions zstdOptions = null;
private ZstdCompressCtx zstdCompressCtx = null;
Expand Down

0 comments on commit 218aa18

Please sign in to comment.