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
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
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