C# Class Lucene.Net.Spatial.Queries.SpatialArgsParser

Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
Parse ( string v, SpatialContext ctx ) : SpatialArgs

Parses a string such as "Intersects(ENVELOPE(-10,-8,22,20)) distErrPct=0.025".

WriteSpatialArgs ( SpatialArgs args ) : string

Writes a close approximation to the parsed input format.

Méthodes protégées

Méthode Description
NewSpatialArgs ( SpatialOperation op, IShape shape ) : SpatialArgs
ParseMap ( string body ) : string>.IDictionary

Parses "a=b c=d f" (whitespace separated) into name-value pairs. If there is no '=' as in 'f' above then it's short for f=f.

ParseShape ( string str, SpatialContext ctx ) : IShape
ReadBool ( string v, bool defaultValue ) : bool
ReadDouble ( string v ) : double?
ReadNameValuePairs ( SpatialArgs args, string>.IDictionary nameValPairs ) : void

Method Details

NewSpatialArgs() protected méthode

protected NewSpatialArgs ( SpatialOperation op, IShape shape ) : SpatialArgs
op SpatialOperation
shape IShape
Résultat SpatialArgs

Parse() public méthode

Parses a string such as "Intersects(ENVELOPE(-10,-8,22,20)) distErrPct=0.025".
if the parameters don't make sense or an add-on parameter is unknown If there is a problem parsing the string When the coordinates are invalid for the shape
public Parse ( string v, SpatialContext ctx ) : SpatialArgs
v string The string to parse. Mandatory.
ctx Spatial4n.Core.Context.SpatialContext The spatial context. Mandatory.
Résultat SpatialArgs

ParseMap() protected static méthode

Parses "a=b c=d f" (whitespace separated) into name-value pairs. If there is no '=' as in 'f' above then it's short for f=f.
protected static ParseMap ( string body ) : string>.IDictionary
body string
Résultat string>.IDictionary

ParseShape() protected méthode

protected ParseShape ( string str, SpatialContext ctx ) : IShape
str string
ctx Spatial4n.Core.Context.SpatialContext
Résultat IShape

ReadBool() protected static méthode

protected static ReadBool ( string v, bool defaultValue ) : bool
v string
defaultValue bool
Résultat bool

ReadDouble() protected static méthode

protected static ReadDouble ( string v ) : double?
v string
Résultat double?

ReadNameValuePairs() protected méthode

protected ReadNameValuePairs ( SpatialArgs args, string>.IDictionary nameValPairs ) : void
args SpatialArgs
nameValPairs string>.IDictionary
Résultat void

WriteSpatialArgs() public static méthode

Writes a close approximation to the parsed input format.
public static WriteSpatialArgs ( SpatialArgs args ) : string
args SpatialArgs
Résultat string