@@ -0,0 +1,2952 @@
+/*%0A * Licensed to STRATIO (C) under one or more contributor license agreements.%0A * See the NOTICE file distributed with this work for additional information%0A * regarding copyright ownership.  The STRATIO (C) licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Apackage com.stratio.cassandra.lucene.builder.index.schema.mapping;%0A%0Aimport org.codehaus.jackson.annotate.JsonCreator;%0Aimport org.codehaus.jackson.annotate.JsonProperty;%0A%0A/**%0A * A %7B@link Mapper%7D to map geographical points.%0A *%0A * @author Andres de la Pena %7B@literal %3Cadelapena@stratio.com%3E%7D%0A */%0Apublic class GeoShapeMapper extends Mapper%3CGeoShapeMapper%3E %7B%0A%0A    /** The name of the column containing the latitude. */%0A    @JsonProperty(%22latitude%22)%0A    final String latitude;%0A%0A    /** The name of the column containing the longitude. */%0A    @JsonProperty(%22longitude%22)%0A    final String longitude;%0A%0A    /** The maximum number of levels in the tree. */%0A    @JsonProperty(%22max_levels%22)%0A    Integer maxLevels;%0A%0A    /** The name of the column containing the longitude. */%0A    @JsonProperty(%22indexed%22)%0A    Boolean indexed;%0A%0A    /** The maximum number of levels in the tree. */%0A    @JsonProperty(%22sorted%22)%0A    Boolean sorted;%0A%0A    /**%0A     * Builds a new %7B@code GeoPointMapper%7D.%0A     *%0A     * @param latitude  The name of the column containing the latitude.%0A     * @param longitude The name of the column containing the longitude.%0A     */%0A    @JsonCreator%0A    public GeoShapeMapper(@JsonProperty(%22latitude%22) String latitude,%0A                          @JsonProperty(%22longitude%22) String longitude) %7B%0A        this.latitude = latitude;%0A        this.longitude = longitude;%0A    %7D%0A%0A    /**%0A     * Sets the maximum number of levels in the tree.%0A     *%0A     * @param maxLevels The maximum number of levels in the tree.%0A     * @return This%0A     */%0A    public GeoShapeMapper maxLevels(Integer maxLevels) %7B%0A        this.maxLevels = maxLevels;%0A        return this;%0A    %7D%0A%0A    /**%0A     * Sets if the field supports searching.%0A     *%0A     * @param indexed if the field supports searching.%0A     * @return This.%0A     */%0A    public final GeoShapeMapper indexed(Boolean indexed) %7B%0A        this.indexed = indexed;%0A        return this;%0A    %7D%0A%0A    /**%0A     * Sets if the field supports sorting.%0A     *%0A     * @param sorted if the field supports sorting.%0A     * @return This.%0A     */%0A    public final GeoShapeMapper sorted(Boolean sorted) %7B%0A        this.sorted = sorted;%0A        return this;%0A    %7D%0A%7D%0A

Add client-side builder for GeoShapeMapper.