This is an automated email from the ASF dual-hosted git repository.
gabor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-format.git
The following commit(s) were added to refs/heads/master by this push:
new 23d4073 PARQUET-1400: Deprecate parquet-mr related code in
parquet-format (#105)
23d4073 is described below
commit 23d40730ba1641799929f9884bf3ade5292affcf
Author: Gabor Szadovszky <[email protected]>
AuthorDate: Mon Sep 24 14:16:42 2018 +0200
PARQUET-1400: Deprecate parquet-mr related code in parquet-format (#105)
---
src/main/java/org/apache/parquet/format/InterningProtocol.java | 4 +++-
src/main/java/org/apache/parquet/format/LogicalTypes.java | 3 +++
src/main/java/org/apache/parquet/format/Util.java | 4 +++-
src/main/java/org/apache/parquet/format/event/Consumers.java | 4 +++-
.../java/org/apache/parquet/format/event/EventBasedThriftReader.java | 4 +++-
src/main/java/org/apache/parquet/format/event/FieldConsumer.java | 4 +++-
src/main/java/org/apache/parquet/format/event/TypedConsumer.java | 4 +++-
src/test/java/org/apache/parquet/format/TestUtil.java | 5 +++++
8 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/apache/parquet/format/InterningProtocol.java
b/src/main/java/org/apache/parquet/format/InterningProtocol.java
index 6297f1c..31ef655 100644
--- a/src/main/java/org/apache/parquet/format/InterningProtocol.java
+++ b/src/main/java/org/apache/parquet/format/InterningProtocol.java
@@ -35,8 +35,10 @@ import org.apache.thrift.transport.TTransport;
* TProtocol that interns the strings.
*
* @author Julien Le Dem
- *
+ * @deprecated java code moved to the parquet-mr project: See
org.apache.parquet:parquet-format-structures; Will be
+ * removed from here
*/
+@Deprecated
public class InterningProtocol extends TProtocol {
private final TProtocol delegate;
diff --git a/src/main/java/org/apache/parquet/format/LogicalTypes.java
b/src/main/java/org/apache/parquet/format/LogicalTypes.java
index 7c63e41..1301218 100644
--- a/src/main/java/org/apache/parquet/format/LogicalTypes.java
+++ b/src/main/java/org/apache/parquet/format/LogicalTypes.java
@@ -21,7 +21,10 @@ package org.apache.parquet.format;
/**
* Convenience instances of logical type classes.
+ * @deprecated java code moved to the parquet-mr project: See
org.apache.parquet:parquet-format-structures; Will be
+ * removed from here
*/
+@Deprecated
public class LogicalTypes {
public static class TimeUnits {
public static final TimeUnit MILLIS = TimeUnit.MILLIS(new MilliSeconds());
diff --git a/src/main/java/org/apache/parquet/format/Util.java
b/src/main/java/org/apache/parquet/format/Util.java
index 55d61ff..bae4878 100644
--- a/src/main/java/org/apache/parquet/format/Util.java
+++ b/src/main/java/org/apache/parquet/format/Util.java
@@ -53,8 +53,10 @@ import
org.apache.parquet.format.event.TypedConsumer.StringConsumer;
* We use the TCompactProtocol to serialize metadata
*
* @author Julien Le Dem
- *
+ * @deprecated java code moved to the parquet-mr project: See
org.apache.parquet:parquet-format-structures; Will be
+ * removed from here
*/
+@Deprecated
public class Util {
public static void writeColumnIndex(ColumnIndex columnIndex, OutputStream
to) throws IOException {
diff --git a/src/main/java/org/apache/parquet/format/event/Consumers.java
b/src/main/java/org/apache/parquet/format/event/Consumers.java
index ea61d63..e57aa07 100644
--- a/src/main/java/org/apache/parquet/format/event/Consumers.java
+++ b/src/main/java/org/apache/parquet/format/event/Consumers.java
@@ -42,8 +42,10 @@ import
org.apache.parquet.format.event.TypedConsumer.StructConsumer;
* Entry point for reading thrift in a streaming fashion
*
* @author Julien Le Dem
- *
+ * @deprecated java code moved to the parquet-mr project: See
org.apache.parquet:parquet-format-structures; Will be
+ * removed from here
*/
+@Deprecated
public class Consumers {
/**
diff --git
a/src/main/java/org/apache/parquet/format/event/EventBasedThriftReader.java
b/src/main/java/org/apache/parquet/format/event/EventBasedThriftReader.java
index e88432f..6d1f6b8 100644
--- a/src/main/java/org/apache/parquet/format/event/EventBasedThriftReader.java
+++ b/src/main/java/org/apache/parquet/format/event/EventBasedThriftReader.java
@@ -34,8 +34,10 @@ import
org.apache.parquet.format.event.TypedConsumer.SetConsumer;
* Event based reader for Thrift
*
* @author Julien Le Dem
- *
+ * @deprecated java code moved to the parquet-mr project: See
org.apache.parquet:parquet-format-structures; Will be
+ * removed from here
*/
+@Deprecated
public final class EventBasedThriftReader {
private final TProtocol protocol;
diff --git a/src/main/java/org/apache/parquet/format/event/FieldConsumer.java
b/src/main/java/org/apache/parquet/format/event/FieldConsumer.java
index 2be4d6e..c882dcc 100644
--- a/src/main/java/org/apache/parquet/format/event/FieldConsumer.java
+++ b/src/main/java/org/apache/parquet/format/event/FieldConsumer.java
@@ -25,8 +25,10 @@ import org.apache.thrift.protocol.TProtocol;
* To receive Thrift field events
*
* @author Julien Le Dem
- *
+ * @deprecated java code moved to the parquet-mr project: See
org.apache.parquet:parquet-format-structures; Will be
+ * removed from here
*/
+@Deprecated
public interface FieldConsumer {
/**
diff --git a/src/main/java/org/apache/parquet/format/event/TypedConsumer.java
b/src/main/java/org/apache/parquet/format/event/TypedConsumer.java
index 1d10ad6..4838de9 100644
--- a/src/main/java/org/apache/parquet/format/event/TypedConsumer.java
+++ b/src/main/java/org/apache/parquet/format/event/TypedConsumer.java
@@ -40,8 +40,10 @@ import org.apache.thrift.protocol.TSet;
* receive thrift events of a given type
*
* @author Julien Le Dem
- *
+ * @deprecated java code moved to the parquet-mr project: See
org.apache.parquet:parquet-format-structures; Will be
+ * removed from here
*/
+@Deprecated
abstract public class TypedConsumer {
abstract public static class DoubleConsumer extends TypedConsumer {
diff --git a/src/test/java/org/apache/parquet/format/TestUtil.java
b/src/test/java/org/apache/parquet/format/TestUtil.java
index 1adf099..c91f8e2 100644
--- a/src/test/java/org/apache/parquet/format/TestUtil.java
+++ b/src/test/java/org/apache/parquet/format/TestUtil.java
@@ -30,6 +30,11 @@ import java.io.ByteArrayOutputStream;
import org.junit.Test;
import org.apache.parquet.format.Util.DefaultFileMetaDataConsumer;
+/**
+ * @deprecated java code moved to the parquet-mr project: See
org.apache.parquet:parquet-format-structures; Will be
+ * removed from here
+ */
+@Deprecated
public class TestUtil {
@Test