IAvroSerializer<T> Interface

 

Note

A newer version of HDInsight .NET SDK is available that uses the Azure Resource Manager (ARM) approach. You are encouraged to use the newer ARM-based version of HDInsight .NET SDK going forward. For instructions on how to use the new HDInsight .NET SDK to create a cluster, see Create HDInsight Linux clusters using .NET SDK. For instructions on how to submit jobs using the new .NET SDK and other approaches, see Submit jobs to an HDInsight cluster. The HDInsight SDK reference for the newer version is available at HDInsight .NET SDK Reference.

Serializes and deserializes an instance of a type into a stream using Avro binary format. Can be used for serialization of C# types attributed with Data Contract/Member attributes as well as AvroRecord with a manually specified schema.

Namespace:   Microsoft.Hadoop.Avro
Assembly:  Microsoft.Hadoop.Avro (in Microsoft.Hadoop.Avro.dll)

Syntax

public interface IAvroSerializer<T>
generic<typename T>
public interface class IAvroSerializer
type IAvroSerializer<'T> = interface end
Public Interface IAvroSerializer(Of T)

Type Parameters

  • T
    Type of objects to serialize, deserialize.

Properties

Name Description
System_CAPS_pubproperty ReaderSchema

Gets the schema tree of the reader. Can be different from the writer schema, if some schema update occurred between reading and writing.

System_CAPS_pubproperty WriterSchema

Gets the schema tree of the writer. Can be different from the reader schema, if some schema update occurred between reading and writing.

Methods

Name Description
System_CAPS_pubmethod Deserialize(IDecoder)

Deserializes an object from the specified decoder.

System_CAPS_pubmethod Deserialize(Stream)

Deserializes an object from the stream.

System_CAPS_pubmethod Serialize(IEncoder, T)

Serializes the object using the specified encoder.

System_CAPS_pubmethod Serialize(Stream, T)

Serializes the object into the stream.

See Also

Microsoft.Hadoop.Avro Namespace

Return to top