Kinetica C# API
Version 7.2.3.0
|
Reader class for reading data and storing into specific classes More...
Public Member Functions | |
SpecificDefaultReader (Schema writerSchema, Schema readerSchema) | |
Constructor More... | |
![]() | |
DefaultReader (Schema writerSchema, Schema readerSchema) | |
Constructs the default reader for the given schemas using the DefaultReader. More... | |
T | Read< T > (T reuse, Decoder decoder) |
Reads an object off the stream. More... | |
object | Read (object reuse, Schema writerSchema, Schema readerSchema, Decoder d) |
Protected Member Functions | |
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. 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. 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. 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. 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. 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. 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. 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) |
Additional Inherited Members | |
![]() | |
static Schema | findBranch (UnionSchema us, Schema s) |
![]() | |
Schema | ReaderSchema [get] |
Schema | WriterSchema [get] |
Reader class for reading data and storing into specific classes
Definition at line 81 of file SpecificReader.cs.
|
inline |
Constructor
writerSchema | schema of the object that wrote the data |
readerSchema | schema of the object that will store the data |
Definition at line 94 of file SpecificReader.cs.
|
inlineprotectedvirtual |
Gets the target type name in the given schema
schema | schema containing the type to be determined |
nullible | used for union schema |
Definition at line 264 of file SpecificReader.cs.
|
inlineprotectedvirtual |
Reads an array from the given decoder
reuse | object to store data read |
writerSchema | schema of the object that wrote the data |
readerSchema | schema of the object that will store the data |
dec | decoder object that contains the data to be read |
Reimplemented from Avro.Generic.DefaultReader.
Definition at line 199 of file SpecificReader.cs.
|
inlineprotectedvirtual |
Reads an enum from the given decoder
reuse | object to store data read |
writerSchema | schema of the object that wrote the data |
readerSchema | schema of the object that will store the data |
dec | decoder object that contains the data to be read |
Reimplemented from Avro.Generic.DefaultReader.
Definition at line 185 of file SpecificReader.cs.
|
inlineprotectedvirtual |
Deserializes a fixed object and returns the object.
The default implementation uses CreateFixed() and GetFixedBuffer() and returns what CreateFixed() returned.
reuse | If appropriate, uses this object instead of creating a new one. |
writerSchema | The FixedSchema the writer used during serialization. |
readerSchema | The schema that the readr uses. Must be a FixedSchema with the same size as the writerSchema. |
d | The decoder for deserialization. |
Reimplemented from Avro.Generic.DefaultReader.
Definition at line 163 of file SpecificReader.cs.
|
inlineprotectedvirtual |
Deserialized an avro map.
The default implemenation creats a new map using CreateMap() and then adds elements to the map using AddMapEntry().
reuse | If appropriate, use this instead of creating a new map object. |
writerSchema | The schema the writer used to write the map. |
readerSchema | The schema the reader is using. |
d | The decoder for serialization. |
Reimplemented from Avro.Generic.DefaultReader.
Definition at line 232 of file SpecificReader.cs.
|
inlineprotectedvirtual |
Deserializes a record from the stream.
reuse | If not null, a record object that could be reused for returning the result |
writerSchema | The writer's RecordSchema |
readerSchema | The reader's schema, must be RecordSchema too. |
dec | The decoder for deserialization |
Reimplemented from Avro.Generic.DefaultReader.
Definition at line 106 of file SpecificReader.cs.