org.elasticsearch.script.field.ToScriptFieldFactory 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 :server
/*
* 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.script.field;
import org.elasticsearch.index.fielddata.LeafFieldData;
/**
* A helper class that lets {@link LeafFieldData#getScriptFieldFactory} translate from raw doc values
* into the field provider that the scripting API requires. It can make use of information specific
* to the mapped field type, in a way {@link LeafFieldData} is not designed to do.
*
* @param The type of doc values data used to construct a {@link DocValuesScriptFieldFactory}.
*/
public interface ToScriptFieldFactory {
DocValuesScriptFieldFactory getScriptFieldFactory(T docValues, String name);
}