C# 클래스 Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTreeFactory

Abstract Factory for creating SpatialPrefixTree instances with useful defaults and passed on configurations defined in a IDictionary{TKey, TValue}. @lucene.experimental
파일 보기 프로젝트 열기: apache/lucenenet

보호된 프로퍼티들

프로퍼티 타입 설명
args string>.IDictionary
ctx Spatial4n.Core.Context.SpatialContext
maxLevels int?

공개 메소드들

메소드 설명
MakeSPT ( string>.IDictionary args, SpatialContext ctx ) : SpatialPrefixTree

The factory is looked up via "prefixTree" in args, expecting "geohash" or "quad".

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.

보호된 메소드들

메소드 설명
GetLevelForDistance ( double degrees ) : int

Calls SpatialPrefixTree.GetLevelForDistance(double).

Init ( string>.IDictionary args, SpatialContext ctx ) : void
InitMaxLevels ( ) : void
NewSPT ( ) : SpatialPrefixTree

메소드 상세

GetLevelForDistance() 보호된 추상적인 메소드

Calls SpatialPrefixTree.GetLevelForDistance(double).
protected abstract GetLevelForDistance ( double degrees ) : int
degrees double
리턴 int

Init() 보호된 메소드

protected Init ( string>.IDictionary args, SpatialContext ctx ) : void
args string>.IDictionary
ctx Spatial4n.Core.Context.SpatialContext
리턴 void

InitMaxLevels() 보호된 메소드

protected InitMaxLevels ( ) : void
리턴 void

MakeSPT() 공개 정적인 메소드

The factory is looked up via "prefixTree" in args, expecting "geohash" or "quad".
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.
public static MakeSPT ( string>.IDictionary args, SpatialContext ctx ) : SpatialPrefixTree
args string>.IDictionary
ctx Spatial4n.Core.Context.SpatialContext
리턴 SpatialPrefixTree

NewSPT() 보호된 추상적인 메소드

protected abstract NewSPT ( ) : SpatialPrefixTree
리턴 SpatialPrefixTree

프로퍼티 상세

args 보호되어 있는 프로퍼티

protected IDictionary args
리턴 string>.IDictionary

ctx 보호되어 있는 프로퍼티

protected SpatialContext,Spatial4n.Core.Context ctx
리턴 Spatial4n.Core.Context.SpatialContext

maxLevels 보호되어 있는 프로퍼티

protected int? maxLevels
리턴 int?