C# Class Lucene.Net.Spatial.SpatialTestCase

A base test class for spatial lucene. It's mostly Lucene generic.
显示文件 Open project: apache/lucenenet

Protected Properties

Property Type Description
ctx Spatial4n.Core.Context.SpatialContext
indexSearcher Lucene.Net.Search.IndexSearcher
indexWriter RandomIndexWriter

Public Methods

Method Description
SetUp ( ) : void
TearDown ( ) : void

Protected Methods

Method Description
AddDocument ( Lucene.Net.Documents.Document doc ) : void
Commit ( ) : void
DeleteAll ( ) : void
NeedsDocValues ( ) : bool
VerifyDocumentsIndexed ( int numDocs ) : void
addDocumentsAndCommit ( List documents ) : void
executeQuery ( Query query, int numDocs ) : SearchResults
newIndexWriterConfig ( Random random ) : IndexWriterConfig
randomPoint ( ) : Spatial4n.Core.Shapes.IPoint
randomRectangle ( ) : IRectangle

Private Methods

Method Description
randomGaussianMeanMax ( double mean, double max ) : double
randomGaussianMinMeanMax ( double min, double mean, double max ) : double

Method Details

AddDocument() protected method

protected AddDocument ( Lucene.Net.Documents.Document doc ) : void
doc Lucene.Net.Documents.Document
return void

Commit() protected method

protected Commit ( ) : void
return void

DeleteAll() protected method

protected DeleteAll ( ) : void
return void

NeedsDocValues() protected method

protected NeedsDocValues ( ) : bool
return bool

SetUp() public method

public SetUp ( ) : void
return void

TearDown() public method

public TearDown ( ) : void
return void

VerifyDocumentsIndexed() protected method

protected VerifyDocumentsIndexed ( int numDocs ) : void
numDocs int
return void

addDocumentsAndCommit() protected method

protected addDocumentsAndCommit ( List documents ) : void
documents List
return void

executeQuery() protected method

protected executeQuery ( Query query, int numDocs ) : SearchResults
query Lucene.Net.Search.Query
numDocs int
return SearchResults

newIndexWriterConfig() protected method

protected newIndexWriterConfig ( Random random ) : IndexWriterConfig
random System.Random
return Lucene.Net.Index.IndexWriterConfig

randomPoint() protected method

protected randomPoint ( ) : Spatial4n.Core.Shapes.IPoint
return Spatial4n.Core.Shapes.IPoint

randomRectangle() protected method

protected randomRectangle ( ) : IRectangle
return IRectangle

Property Details

ctx protected_oe property

protected SpatialContext,Spatial4n.Core.Context ctx
return Spatial4n.Core.Context.SpatialContext

indexSearcher protected_oe property

protected IndexSearcher,Lucene.Net.Search indexSearcher
return Lucene.Net.Search.IndexSearcher

indexWriter protected_oe property

protected RandomIndexWriter indexWriter
return RandomIndexWriter