C# 클래스 Rubber.DSL.Sort.GeoDistanceSortBuilder

A geo distance based sorting on a geo point like field.
상속: ISortBuilder
파일 보기 프로젝트 열기: stephenpope/Rubber

공개 메소드들

메소드 설명
GeoDistance ( GeoDistance geoDistance ) : GeoDistanceSortBuilder

The geo distance type used to compute the distance.

GeoDistanceSortBuilder ( string fieldName ) : Newtonsoft.Json.Linq

Constructs a new distance based sort on a geo point like field.

Geohash ( string geohash ) : GeoDistanceSortBuilder

The geohash of the geo point to create the range distance facets from.

Missing ( object missing ) : ISortBuilder

Not relevant.

Order ( SortOrder order ) : ISortBuilder

The order of sorting. Defaults to ASC.

Point ( double lat, double lon ) : GeoDistanceSortBuilder

The point to create the range distance facets from.

ToJsonObject ( ) : object
ToString ( ) : string
Unit ( DistanceUnit unit ) : GeoDistanceSortBuilder

The distance unit to use. Defaults to KILOMETERS.

메소드 상세

GeoDistance() 공개 메소드

The geo distance type used to compute the distance.
public GeoDistance ( GeoDistance geoDistance ) : GeoDistanceSortBuilder
geoDistance GeoDistance
리턴 GeoDistanceSortBuilder

GeoDistanceSortBuilder() 공개 메소드

Constructs a new distance based sort on a geo point like field.
public GeoDistanceSortBuilder ( string fieldName ) : Newtonsoft.Json.Linq
fieldName string The geo point like field name.
리턴 Newtonsoft.Json.Linq

Geohash() 공개 메소드

The geohash of the geo point to create the range distance facets from.
public Geohash ( string geohash ) : GeoDistanceSortBuilder
geohash string
리턴 GeoDistanceSortBuilder

Missing() 공개 메소드

Not relevant.
public Missing ( object missing ) : ISortBuilder
missing object
리턴 ISortBuilder

Order() 공개 메소드

The order of sorting. Defaults to ASC.
public Order ( SortOrder order ) : ISortBuilder
order SortOrder
리턴 ISortBuilder

Point() 공개 메소드

The point to create the range distance facets from.
public Point ( double lat, double lon ) : GeoDistanceSortBuilder
lat double Latitude.
lon double Longitude
리턴 GeoDistanceSortBuilder

ToJsonObject() 공개 메소드

public ToJsonObject ( ) : object
리턴 object

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Unit() 공개 메소드

The distance unit to use. Defaults to KILOMETERS.
public Unit ( DistanceUnit unit ) : GeoDistanceSortBuilder
unit DistanceUnit
리턴 GeoDistanceSortBuilder