C# Class Lucene.Net.Spatial.Prefix.Tree.QuadPrefixTree

A SpatialPrefixTree which uses a quad tree in which an indexed term will be generated for each cell, 'A', 'B', 'C', 'D'.
Inheritance: SpatialPrefixTree
Mostra file Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
gridH double

Public Methods

Method Description
GetCell ( byte bytes, int offset, int len ) : Cell
GetCell ( string token ) : Cell
GetLevelForDistance ( double dist ) : int
PrintInfo ( TextWriter @out ) : void
QuadPrefixTree ( SpatialContext ctx ) : Spatial4n.Core.Context
QuadPrefixTree ( SpatialContext ctx, IRectangle bounds, int maxLevels ) : Spatial4n.Core.Context
QuadPrefixTree ( SpatialContext ctx, int maxLevels ) : Spatial4n.Core.Context

Protected Methods

Method Description
GetCell ( IPoint p, int level ) : Cell

Private Methods

Method Description
Build ( double x, double y, int level, IList matches, StringBuilder str, IShape shape, int maxLevel ) : void
CheckBattenberg ( char c, double cx, double cy, int level, IList matches, StringBuilder str, IShape shape, int maxLevel ) : void

Method Details

GetCell() protected method

protected GetCell ( IPoint p, int level ) : Cell
p IPoint
level int
return Cell

GetCell() public method

public GetCell ( byte bytes, int offset, int len ) : Cell
bytes byte
offset int
len int
return Cell

GetCell() public method

public GetCell ( string token ) : Cell
token string
return Cell

GetLevelForDistance() public method

public GetLevelForDistance ( double dist ) : int
dist double
return int

PrintInfo() public method

public PrintInfo ( TextWriter @out ) : void
@out System.IO.TextWriter
return void

QuadPrefixTree() public method

public QuadPrefixTree ( SpatialContext ctx ) : Spatial4n.Core.Context
ctx Spatial4n.Core.Context.SpatialContext
return Spatial4n.Core.Context

QuadPrefixTree() public method

public QuadPrefixTree ( SpatialContext ctx, IRectangle bounds, int maxLevels ) : Spatial4n.Core.Context
ctx Spatial4n.Core.Context.SpatialContext
bounds IRectangle
maxLevels int
return Spatial4n.Core.Context

QuadPrefixTree() public method

public QuadPrefixTree ( SpatialContext ctx, int maxLevels ) : Spatial4n.Core.Context
ctx Spatial4n.Core.Context.SpatialContext
maxLevels int
return Spatial4n.Core.Context

Property Details

gridH public_oe property

public double gridH
return double