Delen via


MaterializedViewDefinition Class

Definition

Materialized View definition for the container.

public class MaterializedViewDefinition : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.Models.MaterializedViewDefinition>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.Models.MaterializedViewDefinition>
type MaterializedViewDefinition = class
    interface IJsonModel<MaterializedViewDefinition>
    interface IPersistableModel<MaterializedViewDefinition>
Public Class MaterializedViewDefinition
Implements IJsonModel(Of MaterializedViewDefinition), IPersistableModel(Of MaterializedViewDefinition)
Inheritance
MaterializedViewDefinition
Implements

Constructors

MaterializedViewDefinition(String, String)

Initializes a new instance of MaterializedViewDefinition.

Properties

Definition

The definition should be an SQL query which would be used to fetch data from the source container to populate into the Materialized View container.

SourceCollectionId

The name of the source container on which the Materialized View will be created.

SourceCollectionRid

An unique identifier for the source collection. This is a system generated property.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MaterializedViewDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MaterializedViewDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MaterializedViewDefinition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MaterializedViewDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MaterializedViewDefinition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to