Kinetica   C#   API  Version 7.2.3.0
DataBlock.cs
Go to the documentation of this file.
1 
18 using System.IO;
19 using Avro.IO;
20 using Avro.Generic;
21 using System.Collections.Generic;
22 
23 namespace Avro.File
24 {
25  public class DataBlock
26  {
27  public byte[] Data { get; set; }
28  public long NumberOfEntries { get; set; }
29  public long BlockSize { get; set; }
30 
31  public DataBlock(long numberOfEntries, long blockSize)
32  {
33  this.NumberOfEntries = numberOfEntries;
34  this.BlockSize = blockSize;
35  this.Data = new byte[blockSize];
36  }
37 
38  internal Stream GetDataAsStream()
39  {
40  return new MemoryStream(Data);
41  }
42  }
43 }
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
DataBlock(long numberOfEntries, long blockSize)
Definition: DataBlock.cs:31