C# Class MongoDB.Driver.Builders.GeoHaystackSearchOptionsBuilder

Inheritance: BuilderBase, IMongoGeoHaystackSearchOptions
Mostrar archivo Open project: CloudMetal/mongo-csharp-driver

Public Methods

Method Description
GeoHaystackSearchOptionsBuilder ( ) : System

Initializes a new instance of the GeoHaystackSearchOptionsBuilder class.

SetLimit ( int value ) : GeoHaystackSearchOptionsBuilder

Sets the maximum number of results to return.

SetMaxDistance ( double value ) : GeoHaystackSearchOptionsBuilder

Sets the max distance.

SetQuery ( string additionalFieldName, BsonValue value ) : GeoHaystackSearchOptionsBuilder

Sets the query on the optional additional field.

ToBsonDocument ( ) : BsonDocument

Returns the result of the builder as a BsonDocument.

Protected Methods

Method Description
Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void

Serializes the result of the builder to a BsonWriter.

Method Details

GeoHaystackSearchOptionsBuilder() public method

Initializes a new instance of the GeoHaystackSearchOptionsBuilder class.
public GeoHaystackSearchOptionsBuilder ( ) : System
return System

Serialize() protected method

Serializes the result of the builder to a BsonWriter.
protected Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void
bsonWriter BsonWriter The writer.
nominalType System.Type The nominal type.
options IBsonSerializationOptions The serialization options.
return void

SetLimit() public method

Sets the maximum number of results to return.
public SetLimit ( int value ) : GeoHaystackSearchOptionsBuilder
value int The maximum number of results to return.
return GeoHaystackSearchOptionsBuilder

SetMaxDistance() public method

Sets the max distance.
public SetMaxDistance ( double value ) : GeoHaystackSearchOptionsBuilder
value double The max distance.
return GeoHaystackSearchOptionsBuilder

SetQuery() public method

Sets the query on the optional additional field.
public SetQuery ( string additionalFieldName, BsonValue value ) : GeoHaystackSearchOptionsBuilder
additionalFieldName string The name of the additional field.
value BsonValue The value fo the additional field.
return GeoHaystackSearchOptionsBuilder

ToBsonDocument() public method

Returns the result of the builder as a BsonDocument.
public ToBsonDocument ( ) : BsonDocument
return BsonDocument