C# Class Lucene.Net.Spatial.Util.ShapePredicateValueSource

A boolean ValueSource that compares a shape from a provided ValueSource with a given Shape and sees if it matches a given SpatialOperation (the predicate). @lucene.experimental
Inheritance: ValueSource
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
CreateWeight ( IDictionary context, IndexSearcher searcher ) : void
Equals ( object o ) : bool
GetHashCode ( ) : int
GetValues ( IDictionary context, Lucene.Net.Index.AtomicReaderContext readerContext ) : Lucene.Net.Queries.Function.FunctionValues
ShapePredicateValueSource ( ValueSource shapeValuesource, SpatialOperation op, IShape queryShape ) : Lucene.Net.Index

Method Details

CreateWeight() public method

public CreateWeight ( IDictionary context, IndexSearcher searcher ) : void
context IDictionary
searcher Lucene.Net.Search.IndexSearcher
return void

Equals() public method

public Equals ( object o ) : bool
o object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetValues() public method

public GetValues ( IDictionary context, Lucene.Net.Index.AtomicReaderContext readerContext ) : Lucene.Net.Queries.Function.FunctionValues
context IDictionary
readerContext Lucene.Net.Index.AtomicReaderContext
return Lucene.Net.Queries.Function.FunctionValues

ShapePredicateValueSource() public method

public ShapePredicateValueSource ( ValueSource shapeValuesource, SpatialOperation op, IShape queryShape ) : Lucene.Net.Index
shapeValuesource ValueSource /// Must yield instances from it's ObjectVal(doc). If null /// then the result is false. This is the left-hand (indexed) side. ///
op Lucene.Net.Spatial.Queries.SpatialOperation the predicate
queryShape IShape The shape on the right-hand (query) side.
return Lucene.Net.Index