Udostępnij za pośrednictwem


Index Class

Definition

Base class for IndexingPolicy Indexes in the Azure Cosmos DB service, you should use a concrete Index like HashIndex or RangeIndex.

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Documents.IndexJsonConverter))]
public abstract class Index : Microsoft.Azure.Documents.JsonSerializable
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Documents.IndexJsonConverter))>]
type Index = class
    inherit JsonSerializable
Public MustInherit Class Index
Inherits JsonSerializable
Inheritance
Derived
Attributes
Newtonsoft.Json.JsonConverterAttribute

Constructors

Index(IndexKind)

Initializes a new instance of the Index class for the Azure Cosmos DB service.

Properties

Kind

Gets or sets the kind of indexing to be applied in the Azure Cosmos DB service.

Methods

Hash(DataType, Int16)

Returns an instance of the HashIndex class with specified DataType and precision for the Azure Cosmos DB service.

Hash(DataType)

Returns an instance of the HashIndex class with specified DataType for the Azure Cosmos DB service.

LoadFrom(JsonReader, JsonSerializerSettings)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
LoadFrom(JsonReader)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
Range(DataType, Int16)

Returns an instance of the RangeIndex class with specified DataType and precision for the Azure Cosmos DB service.

Range(DataType)

Returns an instance of the RangeIndex class with specified DataType for the Azure Cosmos DB service.

SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
Spatial(DataType)

Returns an instance of the SpatialIndex class with specified DataType for the Azure Cosmos DB service.

ToString()

Returns the string representation of the object in the Azure Cosmos DB service.

(Inherited from JsonSerializable)

Applies to