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()
Get the
Document containing properties covered by the index. |
org.bson.Document |
getIndexOptions()
Get the index properties such as unique,...
|
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.HashedIndex.public org.bson.Document getIndexKeys()
IndexDefinitionDocument containing properties covered by the index.getIndexKeys in interface IndexDefinitionpublic org.bson.Document getIndexOptions()
IndexDefinitiongetIndexOptions in interface IndexDefinitionCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.