Share via


BufferedBinaryEncoder Class

 

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.

Represents a buffered binary encoder of Avro basic types.

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

Inheritance Hierarchy

System.Object
  Microsoft.Hadoop.Avro.BufferedBinaryEncoder

Syntax

public sealed class BufferedBinaryEncoder : IEncoder, IDisposable
public ref class BufferedBinaryEncoder sealed : IEncoder, IDisposable
[<Sealed>]
type BufferedBinaryEncoder = 
    class
        interface IEncoder
        interface IDisposable
    end
Public NotInheritable Class BufferedBinaryEncoder
    Implements IEncoder, IDisposable

Constructors

Name Description
System_CAPS_pubmethod BufferedBinaryEncoder(Stream)

Initializes a new instance of the BufferedBinaryEncoder class.

System_CAPS_pubmethod BufferedBinaryEncoder(Stream, Boolean)

Initializes a new instance of the BufferedBinaryEncoder class.

Methods

Name Description
System_CAPS_pubmethod Dispose()

Releases the resources used by the current instance of the BufferedBinaryEncoder class.

System_CAPS_pubmethod Encode(Boolean)

Encodes a boolean value.

System_CAPS_pubmethod Encode(Byte[])

Encodes a byte array as bytes Avro type.

System_CAPS_pubmethod Encode(Double)

Encodes a double value.

System_CAPS_pubmethod Encode(Int32)

Encodes an integer value.

System_CAPS_pubmethod Encode(Int64)

Encodes a long value.

System_CAPS_pubmethod Encode(Single)

Encodes a float value.

System_CAPS_pubmethod Encode(Stream)

Encodes a stream as bytes Avro type.

System_CAPS_pubmethod Encode(String)

Encodes a string value.

System_CAPS_pubmethod EncodeArrayChunk(Int32)

Encodes an array chunk of size.

System_CAPS_pubmethod EncodeFixed(Byte[])

Encodes a byte array as fixed Avro type.

System_CAPS_pubmethod EncodeMapChunk(Int32)

Encodes a map chunk of size.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod Flush()

Clears all buffers for this encoder and causes any buffered data to be written to the underlying stream/device.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Hadoop.Avro Namespace

Return to top