org.elasticsearch.common.geo.GeoFormatterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch Show documentation
Show all versions of elasticsearch Show documentation
Elasticsearch subproject :distribution:archives:integ-test-zip
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
package org.elasticsearch.common.geo;
import org.elasticsearch.geometry.Geometry;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
/**
* Output formatters for geo fields support extensions such as vector tiles.
*
* This class is an extensible version of a static GeometryFormatterFactory
*/
public class GeoFormatterFactory {
/**
* Defines an extension point for geometry formatter
* @param
*/
public interface FormatterFactory {
/**
* Format name
*/
String getName();
/**
* Generates a formatter builder that parses the formatter configuration and generates a formatter
*/
Function, List