C# Class MongoDB.Driver.Builders.IndexOptions

A builder for the options used when creating an index.
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver

Méthodes publiques

Méthode Description
SetBackground ( bool value ) : IndexOptionsBuilder

Sets whether to build the index in the background.

SetBucketSize ( double value ) : IndexOptionsBuilder

Sets the bucket size for geospatial haystack indexes.

SetDropDups ( bool value ) : IndexOptionsBuilder

Sets whether duplicates should be dropped.

SetGeoSpatialRange ( double min, double max ) : IndexOptionsBuilder

Sets the geospatial range.

SetName ( string value ) : IndexOptionsBuilder

Sets the name of the index.

SetSparse ( bool value ) : IndexOptionsBuilder

Sets whether the index is a sparse index.

SetTimeToLive ( System.TimeSpan timeToLive ) : IndexOptionsBuilder

Sets the time to live value.

SetUnique ( bool value ) : IndexOptionsBuilder

Sets whether the index enforces unique values.

Method Details

SetBackground() public static méthode

Sets whether to build the index in the background.
public static SetBackground ( bool value ) : IndexOptionsBuilder
value bool Whether to build the index in the background.
Résultat IndexOptionsBuilder

SetBucketSize() public static méthode

Sets the bucket size for geospatial haystack indexes.
public static SetBucketSize ( double value ) : IndexOptionsBuilder
value double The bucket size.
Résultat IndexOptionsBuilder

SetDropDups() public static méthode

Sets whether duplicates should be dropped.
public static SetDropDups ( bool value ) : IndexOptionsBuilder
value bool Whether duplicates should be dropped.
Résultat IndexOptionsBuilder

SetGeoSpatialRange() public static méthode

Sets the geospatial range.
public static SetGeoSpatialRange ( double min, double max ) : IndexOptionsBuilder
min double The min value of the range.
max double The max value of the range.
Résultat IndexOptionsBuilder

SetName() public static méthode

Sets the name of the index.
public static SetName ( string value ) : IndexOptionsBuilder
value string The name of the index.
Résultat IndexOptionsBuilder

SetSparse() public static méthode

Sets whether the index is a sparse index.
public static SetSparse ( bool value ) : IndexOptionsBuilder
value bool Whether the index is a sparse index.
Résultat IndexOptionsBuilder

SetTimeToLive() public static méthode

Sets the time to live value.
public static SetTimeToLive ( System.TimeSpan timeToLive ) : IndexOptionsBuilder
timeToLive System.TimeSpan The time to live.
Résultat IndexOptionsBuilder

SetUnique() public static méthode

Sets whether the index enforces unique values.
public static SetUnique ( bool value ) : IndexOptionsBuilder
value bool Whether the index enforces unique values.
Résultat IndexOptionsBuilder