From d82859c82ba5ad954419d174558e0e9b32a3852d Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Sun, 20 Jan 2013 17:40:52 +0100 Subject: [PATCH] geo point new field mapper with geo distance facet based impl --- .../fielddata/AtomicGeoPointFieldData.java | 27 + .../index/fielddata/GeoPointValues.java | 122 +++ .../fielddata/IndexFieldDataService.java | 3 + .../fielddata/IndexGeoPointFieldData.java | 37 + .../index/fielddata/ScriptDocValues.java | 29 + .../GeoPointDoubleArrayAtomicFieldData.java | 756 ++++++++++++++++++ .../GeoPointDoubleArrayIndexFieldData.java | 160 ++++ .../fielddata/util/GeoPointArrayRef.java | 164 ++++ .../index/mapper/geo/GeoPoint.java | 33 +- .../index/mapper/geo/GeoPointFieldMapper.java | 5 + .../GeoDistanceFacetCollector.java | 47 +- .../GeoDistanceFacetProcessor.java | 22 +- .../ScriptGeoDistanceFacetCollector.java | 13 +- .../ValueGeoDistanceFacetCollector.java | 45 +- 14 files changed, 1397 insertions(+), 66 deletions(-) create mode 100644 src/main/java/org/elasticsearch/index/fielddata/AtomicGeoPointFieldData.java create mode 100644 src/main/java/org/elasticsearch/index/fielddata/GeoPointValues.java create mode 100644 src/main/java/org/elasticsearch/index/fielddata/IndexGeoPointFieldData.java create mode 100644 src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointDoubleArrayAtomicFieldData.java create mode 100644 src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointDoubleArrayIndexFieldData.java create mode 100644 src/main/java/org/elasticsearch/index/fielddata/util/GeoPointArrayRef.java diff --git a/src/main/java/org/elasticsearch/index/fielddata/AtomicGeoPointFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/AtomicGeoPointFieldData.java new file mode 100644 index 00000000000..ddfae5883fd --- /dev/null +++ b/src/main/java/org/elasticsearch/index/fielddata/AtomicGeoPointFieldData.java @@ -0,0 +1,27 @@ +/* + * Licensed to ElasticSearch and Shay Banon under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. ElasticSearch licenses this + * file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.elasticsearch.index.fielddata; + +/** + */ +public interface AtomicGeoPointFieldData