C# Class MongoDB.Driver.Builders.IndexKeys

Exibir arquivo Open project: CloudMetal/mongo-csharp-driver

Public Methods

Method Description
Ascending ( ) : IndexKeysBuilder

Sets one or more key names to index in ascending order.

Descending ( ) : IndexKeysBuilder

Sets one or more key names to index in descending order.

GeoSpatial ( string name ) : IndexKeysBuilder

Sets the key name to create a geospatial index on.

GeoSpatialHaystack ( string name ) : IndexKeysBuilder

Sets the key name to create a geospatial haystack index on.

GeoSpatialHaystack ( string name, string additionalName ) : IndexKeysBuilder

Sets the key name and additional field name to create a geospatial haystack index on.

Method Details

Ascending() public static method

Sets one or more key names to index in ascending order.
public static Ascending ( ) : IndexKeysBuilder
return IndexKeysBuilder

Descending() public static method

Sets one or more key names to index in descending order.
public static Descending ( ) : IndexKeysBuilder
return IndexKeysBuilder

GeoSpatial() public static method

Sets the key name to create a geospatial index on.
public static GeoSpatial ( string name ) : IndexKeysBuilder
name string The key name.
return IndexKeysBuilder

GeoSpatialHaystack() public static method

Sets the key name to create a geospatial haystack index on.
public static GeoSpatialHaystack ( string name ) : IndexKeysBuilder
name string The key name.
return IndexKeysBuilder

GeoSpatialHaystack() public static method

Sets the key name and additional field name to create a geospatial haystack index on.
public static GeoSpatialHaystack ( string name, string additionalName ) : IndexKeysBuilder
name string The key name.
additionalName string The name of an additional field to index.
return IndexKeysBuilder