Original commit message

ChangeScribe message

LUCENE-5408: Spatial SerializedDVStrategy

BUG - FEATURE: <type-ID>


This is a state update modifier commit: this change set is composed only of mutator methods, and these methods provide changes related to updates of an object's state. This commit includes changes to internationalization, properties or configuration files (CHANGES.txt). This change set is mainly composed of:


1. Changes to package org.apache.lucene.spatial:


1.1. Modifications to StrategyTestCase.java:


1.1.1. Modify variable declaration got at runTestQuery(SpatialMatchConcern,SpatialTestQuery) method

1.1.2. Add a functionality to make query


The added/removed methods triggered changes to StrategyTestCase class


2. Changes to package org.apache.lucene.spatial.serialized:


2.1. Add a SpatialStrategy extension for serialized DV strategy. It allows to:


Instantiate serialized DV strategy with ctx spatial context;

Create indexable fields;

Write;

Make distance value source;

Make query;

Make filter;

Make shape value source;


Referenced by:

DistanceStrategyTest class

QueryEqualsHashCodeTest class

SerializedStrategyTest class


3. Changes to package org.apache.lucene.spatial.util:


3.1. Add a ValueSource extension for distance to shape value source. It allows to:


Instantiate distance to shape value source with shape value source, query point, ctx spatial context and ctx spatial context;

Get description;

Create weight;

Get values;

Handle double val;

Explain;

Check if distance to shape value source equals;

Hash code


Referenced by:

SerializedDVStrategy class

DistanceToShapeValueSource class


3.2. Add a ValueSource extension for shape predicate value source. It allows to:


Instantiate shape predicate value source with shape valuesource source, spatial operation, query shape and query shape;

Get description;

Create weight;

Get values;

Bool val;

Explain;

Check if shape predicate value source equals;

Hash code


Referenced by:

SerializedDVStrategy class

ShapePredicateValueSource class