Table of Contents

Class GeoNearResult.GeoNearStats

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Represents the stats of a GeoNear command.

public class GeoNearResult.GeoNearStats
Inheritance
GeoNearResult.GeoNearStats
Inherited Members
Extension Methods

Constructors

GeoNearStats(BsonDocument)

Initializes a new instance of the GeoNearStats class.

public GeoNearStats(BsonDocument stats)

Parameters

stats BsonDocument

The stats.

Properties

AverageDistance

Gets the average distance.

public double AverageDistance { get; }

Property Value

double

BTreeLocations

Gets the count of b-tree locations.

[Obsolete("Does not exist when using server 2.6.")]
public int BTreeLocations { get; }

Property Value

int

Duration

Gets the duration.

public TimeSpan Duration { get; }

Property Value

TimeSpan

MaxDistance

Gets the max distance.

public double MaxDistance { get; }

Property Value

double

NumberScanned

Gets the number of documents scanned.

[Obsolete("Does not exist when using server 2.6.")]
public int NumberScanned { get; }

Property Value

int

ObjectsLoaded

Gets the number of documents loaded.

public int ObjectsLoaded { get; }

Property Value

int