Method | Description | |
---|---|---|
IndexOptionsBuilder ( ) : System |
Initializes a new instance of the IndexOptionsBuilder class.
|
|
SetBackground ( bool value ) : |
Sets whether to build the index in the background.
|
|
SetBucketSize ( double value ) : |
Sets the bucket size for geospatial haystack indexes.
|
|
SetDropDups ( bool value ) : |
Sets whether duplicates should be dropped.
|
|
SetGeoSpatialRange ( double min, double max ) : |
Sets the geospatial range.
|
|
SetName ( string value ) : |
Sets the name of the index.
|
|
SetSparse ( bool value ) : |
Sets whether the index is a sparse index.
|
|
SetTimeToLive ( System.TimeSpan timeToLive ) : |
Sets the time to live value.
|
|
SetUnique ( bool value ) : |
Sets whether the index enforces unique values.
|
|
ToBsonDocument ( ) : BsonDocument |
Returns the result of the builder as a BsonDocument.
|
Method | Description | |
---|---|---|
Serialize ( BsonWriter bsonWriter, |
Serializes the result of the builder to a BsonWriter.
|
protected Serialize ( BsonWriter bsonWriter, |
||
bsonWriter | BsonWriter | The writer. |
nominalType | The nominal type. | |
options | IBsonSerializationOptions | The serialization options. |
return | void |
public SetBackground ( bool value ) : |
||
value | bool | Whether to build the index in the background. |
return |
public SetBucketSize ( double value ) : |
||
value | double | The bucket size. |
return |
public SetDropDups ( bool value ) : |
||
value | bool | Whether duplicates should be dropped. |
return |
public SetGeoSpatialRange ( double min, double max ) : |
||
min | double | The min value of the range. |
max | double | The max value of the range. |
return |
public SetName ( string value ) : |
||
value | string | The name of the index. |
return |
public SetSparse ( bool value ) : |
||
value | bool | Whether the index is a sparse index. |
return |
public SetTimeToLive ( System.TimeSpan timeToLive ) : |
||
timeToLive | System.TimeSpan | The time to live. |
return |
public SetUnique ( bool value ) : |
||
value | bool | Whether the index enforces unique values. |
return |