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 | |
---|---|---|
ReaderSchema | Gets the schema tree of the reader. Can be different from the writer schema, if some schema update occurred between reading and writing. |
|
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 | |
---|---|---|
Deserialize(IDecoder) | Deserializes an object from the specified decoder. |
|
Deserialize(Stream) | Deserializes an object from the stream. |
|
Serialize(IEncoder, T) | Serializes the object using the specified encoder. |
|
Serialize(Stream, T) | Serializes the object into the stream. |
See Also
Microsoft.Hadoop.Avro Namespace
Return to top