C# Class Rubber.DSL.Filter.GeoPolygonFilterBuilder

Inheritance: IFilterBuilder
Mostrar archivo Open project: stephenpope/Rubber

Public Methods

Method Description
AddPoint ( double lat, double lon ) : GeoPolygonFilterBuilder

Adds a point with lat and lon

AddPoint ( string geohash ) : GeoPolygonFilterBuilder
Cache ( bool cache ) : GeoPolygonFilterBuilder

Should the filter be cached or not. Defaults to false.

CacheKey ( string cacheKey ) : GeoPolygonFilterBuilder
FilterName ( string filterName ) : GeoPolygonFilterBuilder

Sets the filter name for the filter that can be used when searching for matched_filters per hit.

GeoPolygonFilterBuilder ( string name ) : System.Collections.Generic
ToJsonObject ( ) : object
ToString ( ) : string

Method Details

AddPoint() public method

Adds a point with lat and lon
public AddPoint ( double lat, double lon ) : GeoPolygonFilterBuilder
lat double The latitude
lon double The longitude
return GeoPolygonFilterBuilder

AddPoint() public method

public AddPoint ( string geohash ) : GeoPolygonFilterBuilder
geohash string
return GeoPolygonFilterBuilder

Cache() public method

Should the filter be cached or not. Defaults to false.
public Cache ( bool cache ) : GeoPolygonFilterBuilder
cache bool
return GeoPolygonFilterBuilder

CacheKey() public method

public CacheKey ( string cacheKey ) : GeoPolygonFilterBuilder
cacheKey string
return GeoPolygonFilterBuilder

FilterName() public method

Sets the filter name for the filter that can be used when searching for matched_filters per hit.
public FilterName ( string filterName ) : GeoPolygonFilterBuilder
filterName string
return GeoPolygonFilterBuilder

GeoPolygonFilterBuilder() public method

public GeoPolygonFilterBuilder ( string name ) : System.Collections.Generic
name string
return System.Collections.Generic

ToJsonObject() public method

public ToJsonObject ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string