|
override object | ReadRecord (object reuse, RecordSchema writerSchema, Schema readerSchema, Decoder dec) |
| Deserializes a record from the stream. More...
|
|
override object | ReadFixed (object reuse, FixedSchema writerSchema, Schema readerSchema, Decoder d) |
| Deserializes a fixed object and returns the object. The default implementation uses CreateFixed() and GetFixedBuffer() and returns what CreateFixed() returned. More...
|
|
override object | ReadEnum (object reuse, EnumSchema writerSchema, Schema readerSchema, Decoder dec) |
| Reads an enum from the given decoder More...
|
|
override object | ReadArray (object reuse, ArraySchema writerSchema, Schema readerSchema, Decoder dec) |
| Reads an array from the given decoder More...
|
|
override object | ReadMap (object reuse, MapSchema writerSchema, Schema readerSchema, Decoder d) |
| Deserialized an avro map. The default implemenation creats a new map using CreateMap() and then adds elements to the map using AddMapEntry(). More...
|
|
virtual string | getTargetType (Schema schema) |
| Gets the target type name in the given schema More...
|
|
virtual object | ReadNull (Schema readerSchema, Decoder d) |
| Deserializes a null from the stream. More...
|
|
S | Read< S > (Schema.Type tag, Schema readerSchema, Reader< S > reader) |
| A generic function to read primitive types More...
|
|
virtual object | CreateRecord (object reuse, RecordSchema readerSchema) |
| Creates a new record object. Derived classes can override this to return an object of their choice. More...
|
|
virtual bool | TryGetField (object record, string fieldName, int fieldPos, out object value) |
| Used by the default implementation of ReadRecord() to get the existing field of a record object. The derived classes can override this to make their own interpretation of the record object. More...
|
|
virtual void | AddField (object record, string fieldName, int fieldPos, object fieldValue) |
| Used by the default implementation of ReadRecord() to add a field to a record object. The derived classes can override this to suit their own implementation of the record object. More...
|
|
virtual object | CreateEnum (object reuse, EnumSchema es, string symbol) |
| Used by the default implementation of ReadEnum to construct a new enum object. More...
|
|
virtual object | CreateArray (object reuse, ArraySchema rs) |
| Creates a new array object. The initial size of the object could be anything. The users should use GetArraySize() to determine the size. The default implementation creates an object[] . More...
|
|
virtual int | GetArraySize (object array) |
| Returns the size of the given array object. More...
|
|
virtual void | ResizeArray (ref object array, int n) |
| Resizes the array to the new value. More...
|
|
virtual void | SetArrayElement (object array, int index, object value) |
| Assigns a new value to the object at the given index More...
|
|
virtual object | GetArrayElement (object array, int index) |
| Returns the element at the given index. More...
|
|
virtual object | CreateMap (object reuse, MapSchema ms) |
| Used by the default implementation of ReadMap() to create a fresh map object. The default implementaion of this method returns a IDictionary<string, map>. More...
|
|
virtual void | AddMapEntry (object map, string key, object value) |
| Adds an entry to the map. More...
|
|
virtual object | ReadUnion (object reuse, UnionSchema writerSchema, Schema readerSchema, Decoder d) |
| Deserialized an object based on the writer's uninon schema. More...
|
|
virtual object | CreateFixed (object reuse, FixedSchema rs) |
| Returns a fixed object. More...
|
|
virtual byte[] | GetFixedBuffer (object f) |
| Returns a buffer of appropriate size to read data into. More...
|
|
virtual void | Skip (Schema writerSchema, Decoder d) |
|
Reader class for reading data and storing into specific classes