Delen via


AvroFormatSerialization Class

Definition

Describes how data from an input is serialized or how data is serialized when written to an output in Avro format.

public class AvroFormatSerialization : Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.StreamAnalytics.Models.AvroFormatSerialization>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.StreamAnalytics.Models.AvroFormatSerialization>
public class AvroFormatSerialization : Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization
type AvroFormatSerialization = class
    inherit StreamAnalyticsDataSerialization
    interface IJsonModel<AvroFormatSerialization>
    interface IPersistableModel<AvroFormatSerialization>
type AvroFormatSerialization = class
    inherit StreamAnalyticsDataSerialization
Public Class AvroFormatSerialization
Inherits StreamAnalyticsDataSerialization
Implements IJsonModel(Of AvroFormatSerialization), IPersistableModel(Of AvroFormatSerialization)
Public Class AvroFormatSerialization
Inherits StreamAnalyticsDataSerialization
Inheritance
AvroFormatSerialization
Implements

Constructors

AvroFormatSerialization()

Initializes a new instance of AvroFormatSerialization.

Properties

Properties

The properties that are associated with the Avro serialization type. Required on PUT (CreateOrReplace) requests.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AvroFormatSerialization>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AvroFormatSerialization>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<StreamAnalyticsDataSerialization>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from StreamAnalyticsDataSerialization)
IJsonModel<StreamAnalyticsDataSerialization>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from StreamAnalyticsDataSerialization)
IPersistableModel<AvroFormatSerialization>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AvroFormatSerialization>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AvroFormatSerialization>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<StreamAnalyticsDataSerialization>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from StreamAnalyticsDataSerialization)
IPersistableModel<StreamAnalyticsDataSerialization>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from StreamAnalyticsDataSerialization)
IPersistableModel<StreamAnalyticsDataSerialization>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from StreamAnalyticsDataSerialization)

Applies to