Java com.mongodb.client.model IndexOptions fields, constructors, methods, implement or subclass

Example usage for Java com.mongodb.client.model IndexOptions fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.mongodb.client.model IndexOptions.

The text is from its open source code.

Field

Constructor

Method

IndexOptionsexpireAfter(@Nullable final Long expireAfter, final TimeUnit timeUnit)
Sets the time to live for documents in the collection
IntegergetBits()
Gets the number of precision of the stored geohash value of the location data in 2d indexes.
DoublegetBucketSize()
Gets the specified the number of units within which to group the location values for geoHaystack Indexes
CollationgetCollation()
Returns the collation options
StringgetDefaultLanguage()
Gets the language for a text index.
LonggetExpireAfter(final TimeUnit timeUnit)
Gets the time to live for documents in the collection
StringgetLanguageOverride()
Gets the name of the field that contains the language string.
DoublegetMax()
Gets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
DoublegetMin()
Gets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
StringgetName()
Gets the name of the index.
BsongetPartialFilterExpression()
Get the filter expression for the documents to be included in the index or null if not set
IntegergetSphereVersion()
Gets the 2dsphere index version number.
BsongetStorageEngine()
Gets the storage engine options document for this index.
IntegergetTextVersion()
The text index version number.
IntegergetVersion()
Gets the index version number.
BsongetWeights()
Gets the weighting object for use with a text index

A document that represents field and weight pairs.

booleanisBackground()
Create the index in the background
booleanisSparse()
If true, the index only references documents with the specified field
booleanisUnique()
Gets if the index should be unique.