Decoder is used to decode Avro data on a stream. There are methods to read the Avro types on the stream. There are also methods to skip items, which are usually more efficient than reading, on the stream.
| 23 | /// methods to skip items, which are usually more efficient than reading, on the stream. |
| 24 | /// </summary> |
| 25 | public interface Decoder |
| 26 | { |
| 27 | /// <summary> |
| 28 | /// Reads a null Avro type. |
| 29 | /// </summary> |
| 30 | void ReadNull(); |
| 31 | |
| 32 | /// <summary> |
| 33 | /// Read a boolean Avro type |
| 34 | /// </summary> |
| 35 | /// <returns>The boolean just read</returns> |
| 36 | bool ReadBoolean(); |
| 37 | |
| 38 | /// <summary> |
| 39 | /// Reads an int Avro type. |
| 40 | /// </summary> |
| 41 | /// <returns>The int just read</returns> |
| 42 | int ReadInt(); |
| 43 | |
| 44 | /// <summary> |
| 45 | /// Reads a long Avro type. |
| 46 | /// </summary> |
| 47 | /// <returns>The long just read</returns> |
| 48 | long ReadLong(); |
| 49 | |
| 50 | /// <summary> |
| 51 | /// Reads a float Avro type |
| 52 | /// </summary> |
| 53 | /// <returns>The float just read</returns> |
| 54 | float ReadFloat(); |
| 55 | |
| 56 | /// <summary> |
| 57 | /// Reads a double Avro type |
| 58 | /// </summary> |
| 59 | /// <returns>The double just read</returns> |
| 60 | double ReadDouble(); |
| 61 | |
| 62 | /// <summary> |
| 63 | /// Reads the bytes Avro type |
| 64 | /// </summary> |
| 65 | /// <returns>The bytes just read</returns> |
| 66 | byte[] ReadBytes(); |
| 67 | |
| 68 | /// <summary> |
| 69 | /// Reads a string Avro type |
| 70 | /// </summary> |
| 71 | /// <returns>The string just read</returns> |
| 72 | string ReadString(); |
| 73 | |
| 74 | /// <summary> |
| 75 | /// Reads an enum AvroType |
| 76 | /// </summary> |
| 77 | /// <returns>The enum just read</returns> |
| 78 | int ReadEnum(); |
| 79 | |
| 80 | /// <summary> |
| 81 | /// Starts reading the array Avro type. This, together with ReadArrayNext() is used to read the |
| 82 | /// items from Avro array. This returns the number of entries in the initial chunk. After consuming |
no outgoing calls
no test coverage detected
searching dependent graphs…