You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/02/01 10:27:12 UTC

[avro] branch master updated: AVRO-3344 Deprecating DataBlock (#1494)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 1005740  AVRO-3344 Deprecating DataBlock (#1494)
1005740 is described below

commit 100574019b35465831d1b2fb0bff4fe2f512c89a
Author: Kyle Schoonover <ky...@minmaxcorp.com>
AuthorDate: Tue Feb 1 02:27:03 2022 -0800

    AVRO-3344 Deprecating DataBlock (#1494)
    
    Co-authored-by: Kyle T. Schoonover <Ky...@nordstrom.com>
---
 lang/csharp/src/apache/main/File/DataBlock.cs | 63 ---------------------------
 1 file changed, 63 deletions(-)

diff --git a/lang/csharp/src/apache/main/File/DataBlock.cs b/lang/csharp/src/apache/main/File/DataBlock.cs
deleted file mode 100644
index 7fd85e7..0000000
--- a/lang/csharp/src/apache/main/File/DataBlock.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * 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.
- */
-using System;
-using System.IO;
-
-namespace Avro.File
-{
-    /// <summary>
-    /// Encapsulates a block of data read by the <see cref="DataFileReader{T}"/>.
-    /// We will remove this class from the public API in a future version because it is only meant
-    /// to be used internally.
-    /// </summary>
-    [Obsolete("This will be removed from the public API in a future version.")]
-    public class DataBlock
-    {
-        /// <summary>
-        /// Raw bytes within this block.
-        /// </summary>
-        public byte[] Data { get;  set; }
-
-        /// <summary>
-        /// Number of entries in this block.
-        /// </summary>
-        public long NumberOfEntries { get; set; }
-
-        /// <summary>
-        /// Size of this block in bytes.
-        /// </summary>
-        public long BlockSize { get; set; }
-
-        /// <summary>
-        /// Initializes a new instance of the <see cref="DataBlock"/> class.
-        /// </summary>
-        /// <param name="numberOfEntries">Number of entries in this block.</param>
-        /// <param name="blockSize">Size of this block in bytes.</param>
-        public DataBlock(long numberOfEntries, long blockSize)
-        {
-            NumberOfEntries = numberOfEntries;
-            BlockSize = blockSize;
-            Data = new byte[blockSize];
-        }
-
-        internal Stream GetDataAsStream()
-        {
-            return new MemoryStream(Data);
-        }
-    }
-}