C# Класс Lucene.Net.Spatial.Serialized.SerializedDVStrategy

A SpatialStrategy based on serializing a Shape stored into BinaryDocValues. This is not at all fast; it's designed to be used in conjuction with another index based SpatialStrategy that is approximated(like Prefix.RecursivePrefixTreeStrategy) to add precision or eventually make more specific / advanced calculations on the per-document geometry. The serialization uses Spatial4j's BinaryCodec. @lucene.experimental
Наследование: SpatialStrategy
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateIndexableFields ( IShape shape ) : Lucene.Net.Documents.Field[]
MakeDistanceValueSource ( IPoint queryPoint, double multiplier ) : ValueSource
MakeFilter ( SpatialArgs args ) : Filter

Returns a Filter that should be used with FilteredQuery.QUERY_FIRST_FILTER_STRATEGY. Use in another manner is likely to result in an NotSupportedException to prevent misuse because the filter can't efficiently work via iteration.

MakeQuery ( SpatialArgs args ) : ConstantScoreQuery
MakeShapeValueSource ( ) : ValueSource

Provides access to each shape per document as a ValueSource in which FunctionValues.ObjectVal(int) returns a IShape.

SerializedDVStrategy ( SpatialContext ctx, string fieldName ) : Lucene.Net.Documents

Constructs the spatial strategy with its mandatory arguments.

Описание методов

CreateIndexableFields() публичный Метод

public CreateIndexableFields ( IShape shape ) : Lucene.Net.Documents.Field[]
shape IShape
Результат Lucene.Net.Documents.Field[]

MakeDistanceValueSource() публичный Метод

public MakeDistanceValueSource ( IPoint queryPoint, double multiplier ) : ValueSource
queryPoint IPoint
multiplier double
Результат ValueSource

MakeFilter() публичный Метод

Returns a Filter that should be used with FilteredQuery.QUERY_FIRST_FILTER_STRATEGY. Use in another manner is likely to result in an NotSupportedException to prevent misuse because the filter can't efficiently work via iteration.
public MakeFilter ( SpatialArgs args ) : Filter
args Lucene.Net.Spatial.Queries.SpatialArgs
Результат Lucene.Net.Search.Filter

MakeQuery() публичный Метод

public MakeQuery ( SpatialArgs args ) : ConstantScoreQuery
args Lucene.Net.Spatial.Queries.SpatialArgs
Результат Lucene.Net.Search.ConstantScoreQuery

MakeShapeValueSource() публичный Метод

Provides access to each shape per document as a ValueSource in which FunctionValues.ObjectVal(int) returns a IShape.
public MakeShapeValueSource ( ) : ValueSource
Результат ValueSource

SerializedDVStrategy() публичный Метод

Constructs the spatial strategy with its mandatory arguments.
public SerializedDVStrategy ( SpatialContext ctx, string fieldName ) : Lucene.Net.Documents
ctx Spatial4n.Core.Context.SpatialContext
fieldName string
Результат Lucene.Net.Documents