Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory Class Referenceabstract

Abstract Factory for creating SpatialPrefixTree instances with useful defaults and passed on configurations defined in a Map. More...

Inherited by Lucene.Net.Spatial.Prefix.Tree.GeohashPrefixTree.Factory, and Lucene.Net.Spatial.Prefix.Tree.QuadPrefixTree.Factory.

Static Public Member Functions

static SpatialPrefixTree MakeSPT (Dictionary< String, String > args, SpatialContext ctx)
 The factory is looked up via "prefixTree" in args, expecting "geohash" or "quad". If its neither of these, then "geohash" is chosen for a geo context, otherwise "quad" is chosen.
 

Static Public Attributes

static readonly String PREFIX_TREE = "prefixTree"
 
static readonly String MAX_LEVELS = "maxLevels"
 
static readonly String MAX_DIST_ERR = "maxDistErr"
 

Protected Member Functions

void Init (Dictionary< String, String > args, SpatialContext ctx)
 
void InitMaxLevels ()
 
abstract int GetLevelForDistance (double degrees)
 
abstract SpatialPrefixTree NewSPT ()
 

Protected Attributes

Dictionary< String, String > args
 
SpatialContext ctx
 
int maxLevels
 

Detailed Description

Abstract Factory for creating SpatialPrefixTree instances with useful defaults and passed on configurations defined in a Map.

Definition at line 29 of file SpatialPrefixTreeFactory.cs.

Member Function Documentation

abstract int Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.GetLevelForDistance ( double  degrees)
protectedpure virtual
void Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.Init ( Dictionary< String, String >  args,
SpatialContext  ctx 
)
protected

Definition at line 66 of file SpatialPrefixTreeFactory.cs.

void Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.InitMaxLevels ( )
protected

Definition at line 73 of file SpatialPrefixTreeFactory.cs.

static SpatialPrefixTree Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.MakeSPT ( Dictionary< String, String >  args,
SpatialContext  ctx 
)
static

The factory is looked up via "prefixTree" in args, expecting "geohash" or "quad". If its neither of these, then "geohash" is chosen for a geo context, otherwise "quad" is chosen.

Parameters
args
ctx
Returns

Definition at line 47 of file SpatialPrefixTreeFactory.cs.

abstract SpatialPrefixTree Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.NewSPT ( )
protectedpure virtual

Member Data Documentation

Dictionary<String, String> Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.args
protected

Definition at line 36 of file SpatialPrefixTreeFactory.cs.

SpatialContext Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.ctx
protected

Definition at line 37 of file SpatialPrefixTreeFactory.cs.

readonly String Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.MAX_DIST_ERR = "maxDistErr"
static

Definition at line 34 of file SpatialPrefixTreeFactory.cs.

readonly String Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.MAX_LEVELS = "maxLevels"
static

Definition at line 33 of file SpatialPrefixTreeFactory.cs.

int Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.maxLevels
protected

Definition at line 38 of file SpatialPrefixTreeFactory.cs.

readonly String Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory.PREFIX_TREE = "prefixTree"
static

Definition at line 32 of file SpatialPrefixTreeFactory.cs.


The documentation for this class was generated from the following file: