You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by op...@apache.org on 2022/04/01 06:25:17 UTC

[iceberg] branch master updated: Aliyun: Deprecate the public OSSInputStream (#4450)

This is an automated email from the ASF dual-hosted git repository.

openinx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 9034618  Aliyun: Deprecate the public OSSInputStream (#4450)
9034618 is described below

commit 90346185ddc39af6176eea77a3091d06e1666898
Author: Rajarshi Sarkar <sr...@amazon.com>
AuthorDate: Thu Mar 31 23:25:01 2022 -0700

    Aliyun: Deprecate the public OSSInputStream (#4450)
---
 .../main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java   | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java b/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java
index b36db97..b68ba97 100644
--- a/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java
+++ b/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java
@@ -35,6 +35,10 @@ import org.apache.iceberg.relocated.com.google.common.io.ByteStreams;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+/**
+ * @deprecated moving to package-private in 0.15.0
+ */
+@Deprecated
 public class OSSInputStream extends SeekableInputStream {
   private static final Logger LOG = LoggerFactory.getLogger(OSSInputStream.class);
   private static final int SKIP_SIZE = 1024 * 1024;
@@ -51,6 +55,10 @@ public class OSSInputStream extends SeekableInputStream {
   private final Counter<Long> readBytes;
   private final Counter<Integer> readOperations;
 
+  /**
+   * @deprecated moving to package-private in 0.15.0
+   */
+  @Deprecated
   public OSSInputStream(OSS client, OSSURI uri) {
     this(client, uri, MetricsContext.nullMetrics());
   }