public class HashedIndex extends Object implements IndexDefinition
IndexDefinition implementation for MongoDB
Hashed Indexes maintaining entries with hashes of
the values of the indexed field.| Modifier and Type | Method and Description |
|---|---|
org.bson.Document |
getIndexKeys() |
org.bson.Document |
getIndexOptions() |
static HashedIndex |
hashed(String field)
Creates a new
HashedIndex for the given field. |
public static HashedIndex hashed(String field)
HashedIndex for the given field.field - must not be null nor empty.public org.bson.Document getIndexKeys()
getIndexKeys in interface IndexDefinitionpublic org.bson.Document getIndexOptions()
getIndexOptions in interface IndexDefinitionCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.