Kinetica   C#   API  Version 7.2.3.0
NullCodec.cs
Go to the documentation of this file.
1 
18 using System;
19 using System.Collections.Generic;
20 using System.Linq;
21 using System.Text;
22 
23 namespace Avro.File
24 {
25  public class NullCodec : Codec
26  {
27  public NullCodec() { }
28 
29  public override byte[] Compress(byte[] uncompressedData)
30  {
31  return uncompressedData;
32  }
33 
34  public override byte[] Decompress(byte[] compressedData)
35  {
36  return compressedData;
37  }
38 
39  public override string GetName()
40  {
42  }
43 
44  public override bool Equals(object other)
45  {
46  if (this == other)
47  return true;
48  return (this.GetType().Name == other.GetType().Name);
49  }
50 
51  public override int GetHashCode()
52  {
54  }
55  }
56 }
override byte [] Compress(byte[] uncompressedData)
Compress data using implemented codec
Definition: NullCodec.cs:29
override bool Equals(object other)
Codecs must implement an equals() method
Definition: NullCodec.cs:44
override int GetHashCode()
Codecs must implement a HashCode() method that is consistent with Equals
Definition: NullCodec.cs:51
override byte [] Decompress(byte[] compressedData)
Decompress data using implemented codec
Definition: NullCodec.cs:34
override string GetName()
Name of this codec type
Definition: NullCodec.cs:39