Table of Contents

Interface IWithSpatialIndexes<ParentT>

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.IndexingPolicy.Definition
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

The stage of the indexing policy definition allowing to set spatial indexes.

public interface IWithSpatialIndexes<ParentT>

Type Parameters

ParentT

The stage of the parent definition to return to after attaching this definition.

Methods

WithSpatialIndex(SpatialSpec)

Specifies a spatial index.

IWithAttach<ParentT> WithSpatialIndex(SpatialSpec spatialSpec)

Parameters

spatialSpec SpatialSpec

One of the spatial spec.

Returns

IWithAttach<ParentT>

The next stage of the definition.

WithSpatialIndex(string, params SpatialType[])

Specifies a spatial index.

IWithAttach<ParentT> WithSpatialIndex(string path, params SpatialType[] types)

Parameters

path string

The path of the spatial index.

types SpatialType[]

The types of the spatial index.

Returns

IWithAttach<ParentT>

The next stage of the definition.

WithSpatialIndexes(IList<SpatialSpec>)

Specifies the spatial indexes.

IWithAttach<ParentT> WithSpatialIndexes(IList<SpatialSpec> spatialSpecs)

Parameters

spatialSpecs IList<SpatialSpec>

The list of the spatial spec.

Returns

IWithAttach<ParentT>

The next stage of the definition.