com.microsoft.azure.documentdb.IndexKind Maven / Gradle / Ivy
package com.microsoft.azure.documentdb;
/**
* These are the indexing types available for indexing a path in the Azure Cosmos DB database service.
* For additional details, refer to
* http://azure.microsoft.com/documentation/articles/documentdb-indexing-policies/#ConfigPolicy.
*/
public enum IndexKind {
// The index entries are hashed to serve point look up queries.
// Can be used to serve queries like: SELECT * FROM docs d WHERE d.prop = 5
Hash,
// The index entries are ordered. Range indexes are optimized for inequality predicate queries with efficient range
// scans.
// Can be used to serve queries like: SELECT * FROM docs d WHERE d.prop > 5
Range,
// The index entries are indexed to serve spatial queries like below:
// SELECT * FROM Root r WHERE ST_DISTANCE({"type":"Point","coordinates":[71.0589,42.3601]}, r.location) $LE 10000
Spatial
}