Move runtime fields classes into common packages (#70965)

Runtime fields currently live in their own java package. This is really
a leftover from when they were in their own module; now that they are
in core they should instead live in the common packages for classes of
their kind.

This commit makes the following moves:
org.elasticsearch.runtimefields.mapper => org.elasticsearch.index.mapper
org.elasticsearch.runtimefields.fielddata => org.elasticsearch.index.fielddata
org.elasticsearch.runtimefields.query => org.elasticsearch.search.runtime

The XFieldScript fields are moved out of the `mapper` package into 
org.elasticsearch.scripts, and the `PARSE_FROM_SOURCE` default scripts
are moved from these Script classes directly into the field type classes that
use them.
This commit is contained in:
Alan Woodward 2021-03-29 12:02:01 +01:00 committed by GitHub
parent b025f51ece
commit c475fd9e8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
133 changed files with 493 additions and 553 deletions

View file

@ -13,14 +13,14 @@ import org.elasticsearch.painless.spi.Whitelist;
import org.elasticsearch.painless.spi.WhitelistInstanceBinding;
import org.elasticsearch.painless.spi.WhitelistLoader;
import org.elasticsearch.painless.spi.annotation.CompileTimeOnlyAnnotation;
import org.elasticsearch.runtimefields.mapper.AbstractFieldScript;
import org.elasticsearch.runtimefields.mapper.BooleanFieldScript;
import org.elasticsearch.runtimefields.mapper.DateFieldScript;
import org.elasticsearch.runtimefields.mapper.DoubleFieldScript;
import org.elasticsearch.runtimefields.mapper.GeoPointFieldScript;
import org.elasticsearch.runtimefields.mapper.IpFieldScript;
import org.elasticsearch.runtimefields.mapper.LongFieldScript;
import org.elasticsearch.runtimefields.mapper.StringFieldScript;
import org.elasticsearch.script.AbstractFieldScript;
import org.elasticsearch.script.BooleanFieldScript;
import org.elasticsearch.script.DateFieldScript;
import org.elasticsearch.script.DoubleFieldScript;
import org.elasticsearch.script.GeoPointFieldScript;
import org.elasticsearch.script.IpFieldScript;
import org.elasticsearch.script.LongFieldScript;
import org.elasticsearch.script.StringFieldScript;
import org.elasticsearch.script.ScriptContext;
import java.util.List;