[Rename] refactor o.e.script package in server module. (#250)
Refactor the package`org.elasticsearch.script` in server module to rename it to`org.opensearch.script`. Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
parent
9eb511dda2
commit
16c3b54639
|
@ -62,8 +62,8 @@ import org.opensearch.rest.action.document.RestGetAction;
|
|||
import org.opensearch.rest.action.document.RestIndexAction;
|
||||
import org.opensearch.rest.action.document.RestMultiGetAction;
|
||||
import org.opensearch.rest.action.document.RestUpdateAction;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.fetch.subphase.FetchSourceContext;
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.DateTimeZone;
|
||||
|
|
|
@ -88,8 +88,8 @@ import org.elasticsearch.index.reindex.ReindexRequest;
|
|||
import org.elasticsearch.index.reindex.RemoteInfo;
|
||||
import org.elasticsearch.index.reindex.UpdateByQueryRequest;
|
||||
import org.opensearch.rest.action.search.RestSearchAction;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.opensearch.script.mustache.MultiSearchTemplateRequest;
|
||||
import org.opensearch.script.mustache.SearchTemplateRequest;
|
||||
import org.elasticsearch.search.Scroll;
|
||||
|
|
|
@ -52,8 +52,8 @@ import org.opensearch.join.aggregations.Children;
|
|||
import org.opensearch.join.aggregations.ChildrenAggregationBuilder;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.opensearch.rest.action.document.RestIndexAction;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.opensearch.script.mustache.MultiSearchTemplateRequest;
|
||||
import org.opensearch.script.mustache.MultiSearchTemplateResponse;
|
||||
import org.opensearch.script.mustache.MultiSearchTemplateResponse.Item;
|
||||
|
|
|
@ -26,8 +26,8 @@ import org.opensearch.action.admin.cluster.storedscripts.PutStoredScriptRequest;
|
|||
import org.elasticsearch.common.bytes.BytesArray;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.StoredScriptSource;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.StoredScriptSource;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
|||
import org.elasticsearch.index.reindex.UpdateByQueryAction;
|
||||
import org.elasticsearch.index.reindex.UpdateByQueryRequest;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.tasks.RawTaskStatus;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
|
||||
|
|
|
@ -82,8 +82,8 @@ import org.elasticsearch.index.reindex.RemoteInfo;
|
|||
import org.elasticsearch.index.reindex.ScrollableHitSource;
|
||||
import org.elasticsearch.index.reindex.UpdateByQueryRequest;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.fetch.subphase.FetchSourceContext;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
|
||||
|
|
|
@ -30,8 +30,8 @@ import org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder;
|
|||
import org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder.FilterFunctionBuilder;
|
||||
import org.opensearch.join.query.JoinQueryBuilders;
|
||||
import org.elasticsearch.index.query.RankFeatureQueryBuilders;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -74,7 +74,7 @@ import org.opensearch.index.rankeval.RatedDocument;
|
|||
import org.opensearch.index.rankeval.RatedRequest;
|
||||
import org.opensearch.index.rankeval.RatedSearchHit;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.opensearch.script.mustache.MultiSearchTemplateRequest;
|
||||
import org.opensearch.script.mustache.MultiSearchTemplateResponse;
|
||||
import org.opensearch.script.mustache.MultiSearchTemplateResponse.Item;
|
||||
|
|
|
@ -35,8 +35,8 @@ import org.elasticsearch.common.unit.TimeValue;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.StoredScriptSource;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.StoredScriptSource;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.search.aggregations.support;
|
|||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.ParsingException;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.opensearch.script.Script;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilder.CommonFields;
|
||||
import org.elasticsearch.search.aggregations.Aggregator;
|
||||
import org.elasticsearch.search.aggregations.support.CoreValuesSourceType;
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.elasticsearch.common.xcontent.ContextParser;
|
|||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.indices.breaker.NoneCircuitBreakerService;
|
||||
import org.elasticsearch.plugins.SearchPlugin;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.elasticsearch.search.aggregations.Aggregation;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.ParsedAggregation;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.analysis.common;
|
|||
import org.opensearch.painless.spi.PainlessExtension;
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.opensearch.painless.spi.WhitelistLoader;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
|
|||
import org.apache.lucene.analysis.tokenattributes.PositionLengthAttribute;
|
||||
import org.apache.lucene.analysis.tokenattributes.TypeAttribute;
|
||||
import org.apache.lucene.util.AttributeSource;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
/**
|
||||
* A predicate based on the current token in a TokenStream
|
||||
|
|
|
@ -137,8 +137,8 @@ import org.elasticsearch.plugins.AnalysisPlugin;
|
|||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.plugins.ScriptPlugin;
|
||||
import org.elasticsearch.repositories.RepositoriesService;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.watcher.ResourceWatcherService;
|
||||
import org.tartarus.snowball.ext.DutchStemmer;
|
||||
|
|
|
@ -24,9 +24,9 @@ import org.apache.lucene.analysis.TokenStream;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.index.IndexSettings;
|
||||
import org.elasticsearch.index.analysis.AbstractTokenFilterFactory;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptType;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@ import org.elasticsearch.index.analysis.AbstractTokenFilterFactory;
|
|||
import org.elasticsearch.index.analysis.CharFilterFactory;
|
||||
import org.elasticsearch.index.analysis.TokenFilterFactory;
|
||||
import org.elasticsearch.index.analysis.TokenizerFactory;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptType;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -28,9 +28,9 @@ import org.elasticsearch.index.IndexSettings;
|
|||
import org.elasticsearch.index.analysis.IndexAnalyzers;
|
||||
import org.elasticsearch.index.analysis.NamedAnalyzer;
|
||||
import org.elasticsearch.indices.analysis.AnalysisModule;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.elasticsearch.test.ESTokenStreamTestCase;
|
||||
import org.elasticsearch.test.IndexSettingsModule;
|
||||
|
||||
|
|
|
@ -28,9 +28,9 @@ import org.elasticsearch.index.IndexSettings;
|
|||
import org.elasticsearch.index.analysis.IndexAnalyzers;
|
||||
import org.elasticsearch.index.analysis.NamedAnalyzer;
|
||||
import org.elasticsearch.indices.analysis.AnalysisModule;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.elasticsearch.test.ESTokenStreamTestCase;
|
||||
import org.elasticsearch.test.IndexSettingsModule;
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.ingest.IngestStats;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.MockScriptEngine;
|
||||
import org.elasticsearch.script.MockScriptPlugin;
|
||||
import org.opensearch.script.MockScriptEngine;
|
||||
import org.opensearch.script.MockScriptPlugin;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
import org.elasticsearch.test.InternalTestCluster;
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@ import org.elasticsearch.ingest.ConfigurationUtils;
|
|||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.ingest.ValueSource;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ import org.elasticsearch.ingest.AbstractProcessor;
|
|||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZoneOffset;
|
||||
|
|
|
@ -27,8 +27,8 @@ import org.elasticsearch.ingest.AbstractProcessor;
|
|||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZoneOffset;
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.elasticsearch.ingest.AbstractProcessor;
|
|||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.elasticsearch.ingest.ConfigurationUtils;
|
|||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.ingest.WrappingProcessor;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptService;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -22,8 +22,8 @@ package org.opensearch.ingest.common;
|
|||
import org.opensearch.painless.spi.PainlessExtension;
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.opensearch.painless.spi.WhitelistLoader;
|
||||
import org.elasticsearch.script.IngestScript;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.IngestScript;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.elasticsearch.ingest.AbstractProcessor;
|
|||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.elasticsearch.ingest.AbstractProcessor;
|
|||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
|
|
@ -32,12 +32,12 @@ import org.elasticsearch.common.xcontent.json.JsonXContent;
|
|||
import org.elasticsearch.ingest.AbstractProcessor;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.script.DynamicMap;
|
||||
import org.elasticsearch.script.IngestScript;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.DynamicMap;
|
||||
import org.opensearch.script.IngestScript;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptType;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.Arrays;
|
||||
|
|
|
@ -24,8 +24,8 @@ import org.elasticsearch.ingest.ConfigurationUtils;
|
|||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.ingest.ValueSource;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.ingest.common;
|
|||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.RandomDocumentPicks;
|
||||
import org.elasticsearch.ingest.TestTemplateService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.time.Instant;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.ingest.common;
|
|||
import org.elasticsearch.OpenSearchParseException;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.ingest.TestProcessor;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.hamcrest.Matchers;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.elasticsearch.ingest.IngestDocument;
|
|||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.ingest.TestProcessor;
|
||||
import org.elasticsearch.ingest.TestTemplateService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -22,13 +22,13 @@ package org.opensearch.ingest.common;
|
|||
import org.elasticsearch.OpenSearchException;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.xcontent.XContentParseException;
|
||||
import org.elasticsearch.script.IngestScript;
|
||||
import org.elasticsearch.script.MockScriptEngine;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.elasticsearch.script.ScriptModule;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.IngestScript;
|
||||
import org.opensearch.script.MockScriptEngine;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptModule;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -22,12 +22,12 @@ package org.opensearch.ingest.common;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.RandomDocumentPicks;
|
||||
import org.elasticsearch.script.IngestScript;
|
||||
import org.elasticsearch.script.MockScriptEngine;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptModule;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.IngestScript;
|
||||
import org.opensearch.script.MockScriptEngine;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptModule;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -31,8 +31,8 @@ import org.elasticsearch.index.query.QueryBuilders;
|
|||
import org.elasticsearch.index.query.functionscore.ScoreFunctionBuilders;
|
||||
import org.elasticsearch.index.query.functionscore.ScriptScoreFunctionBuilder;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilders;
|
||||
import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.elasticsearch.common.bytes.BytesArray;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.aggregations.AggregationBuilders;
|
||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
|
|
|
@ -26,8 +26,8 @@ import org.apache.lucene.expressions.SimpleBindings;
|
|||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.apache.lucene.search.DoubleValues;
|
||||
import org.apache.lucene.search.DoubleValuesSource;
|
||||
import org.elasticsearch.script.AggregationScript;
|
||||
import org.elasticsearch.script.GeneralScriptException;
|
||||
import org.opensearch.script.AggregationScript;
|
||||
import org.opensearch.script.GeneralScriptException;
|
||||
|
||||
/**
|
||||
* A bridge to evaluate an {@link Expression} against {@link Bindings} in the context
|
||||
|
|
|
@ -24,8 +24,8 @@ import org.apache.lucene.expressions.SimpleBindings;
|
|||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.apache.lucene.search.DoubleValues;
|
||||
import org.apache.lucene.search.DoubleValuesSource;
|
||||
import org.elasticsearch.script.FieldScript;
|
||||
import org.elasticsearch.script.GeneralScriptException;
|
||||
import org.opensearch.script.FieldScript;
|
||||
import org.opensearch.script.GeneralScriptException;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@ import org.apache.lucene.expressions.SimpleBindings;
|
|||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.apache.lucene.search.DoubleValues;
|
||||
import org.apache.lucene.search.DoubleValuesSource;
|
||||
import org.elasticsearch.script.GeneralScriptException;
|
||||
import org.elasticsearch.script.NumberSortScript;
|
||||
import org.opensearch.script.GeneralScriptException;
|
||||
import org.opensearch.script.NumberSortScript;
|
||||
|
||||
/**
|
||||
* A bridge to evaluate an {@link Expression} against {@link Bindings} in the context
|
||||
|
|
|
@ -24,8 +24,8 @@ import java.util.Collection;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.plugins.ScriptPlugin;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptEngine;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptEngine;
|
||||
|
||||
public class ExpressionPlugin extends Plugin implements ScriptPlugin {
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ import org.apache.lucene.expressions.SimpleBindings;
|
|||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.apache.lucene.search.DoubleValues;
|
||||
import org.apache.lucene.search.DoubleValuesSource;
|
||||
import org.elasticsearch.script.GeneralScriptException;
|
||||
import org.elasticsearch.script.ScoreScript;
|
||||
import org.opensearch.script.GeneralScriptException;
|
||||
import org.opensearch.script.ScoreScript;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -32,18 +32,18 @@ import org.elasticsearch.index.fielddata.IndexNumericFieldData;
|
|||
import org.elasticsearch.index.mapper.DateFieldMapper;
|
||||
import org.elasticsearch.index.mapper.GeoPointFieldMapper.GeoPointFieldType;
|
||||
import org.elasticsearch.index.mapper.MappedFieldType;
|
||||
import org.elasticsearch.script.AggregationScript;
|
||||
import org.elasticsearch.script.BucketAggregationScript;
|
||||
import org.elasticsearch.script.BucketAggregationSelectorScript;
|
||||
import org.elasticsearch.script.ClassPermission;
|
||||
import org.elasticsearch.script.FieldScript;
|
||||
import org.elasticsearch.script.FilterScript;
|
||||
import org.elasticsearch.script.NumberSortScript;
|
||||
import org.elasticsearch.script.ScoreScript;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptEngine;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.elasticsearch.script.TermsSetQueryScript;
|
||||
import org.opensearch.script.AggregationScript;
|
||||
import org.opensearch.script.BucketAggregationScript;
|
||||
import org.opensearch.script.BucketAggregationSelectorScript;
|
||||
import org.opensearch.script.ClassPermission;
|
||||
import org.opensearch.script.FieldScript;
|
||||
import org.opensearch.script.FilterScript;
|
||||
import org.opensearch.script.NumberSortScript;
|
||||
import org.opensearch.script.ScoreScript;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptEngine;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.opensearch.script.TermsSetQueryScript;
|
||||
import org.elasticsearch.search.lookup.SearchLookup;
|
||||
|
||||
import java.security.AccessControlContext;
|
||||
|
|
|
@ -26,8 +26,8 @@ import org.apache.lucene.expressions.SimpleBindings;
|
|||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.apache.lucene.search.DoubleValues;
|
||||
import org.apache.lucene.search.DoubleValuesSource;
|
||||
import org.elasticsearch.script.GeneralScriptException;
|
||||
import org.elasticsearch.script.TermsSetQueryScript;
|
||||
import org.opensearch.script.GeneralScriptException;
|
||||
import org.opensearch.script.TermsSetQueryScript;
|
||||
|
||||
/**
|
||||
* A bridge to evaluate an {@link Expression} against {@link Bindings} in the context
|
||||
|
|
|
@ -20,13 +20,13 @@
|
|||
grant {
|
||||
// needed to generate runtime classes
|
||||
permission java.lang.RuntimePermission "createClassLoader";
|
||||
|
||||
|
||||
// expression runtime
|
||||
permission org.elasticsearch.script.ClassPermission "java.lang.String";
|
||||
permission org.elasticsearch.script.ClassPermission "org.apache.lucene.expressions.Expression";
|
||||
permission org.elasticsearch.script.ClassPermission "org.apache.lucene.search.DoubleValues";
|
||||
permission org.opensearch.script.ClassPermission "java.lang.String";
|
||||
permission org.opensearch.script.ClassPermission "org.apache.lucene.expressions.Expression";
|
||||
permission org.opensearch.script.ClassPermission "org.apache.lucene.search.DoubleValues";
|
||||
// available functions
|
||||
permission org.elasticsearch.script.ClassPermission "java.lang.Math";
|
||||
permission org.elasticsearch.script.ClassPermission "org.apache.lucene.util.MathUtil";
|
||||
permission org.elasticsearch.script.ClassPermission "org.apache.lucene.util.SloppyMath";
|
||||
permission org.opensearch.script.ClassPermission "java.lang.Math";
|
||||
permission org.opensearch.script.ClassPermission "org.apache.lucene.util.MathUtil";
|
||||
permission org.opensearch.script.ClassPermission "org.apache.lucene.util.SloppyMath";
|
||||
};
|
||||
|
|
|
@ -24,8 +24,8 @@ import org.elasticsearch.index.fielddata.LeafNumericFieldData;
|
|||
import org.elasticsearch.index.fielddata.SortedNumericDoubleValues;
|
||||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.elasticsearch.index.mapper.NumberFieldMapper;
|
||||
import org.elasticsearch.script.FieldScript;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.FieldScript;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.elasticsearch.search.lookup.SearchLookup;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
|
|
|
@ -28,8 +28,8 @@ import org.elasticsearch.index.fielddata.SortedNumericDoubleValues;
|
|||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.elasticsearch.index.mapper.NumberFieldMapper.NumberFieldType;
|
||||
import org.elasticsearch.index.mapper.NumberFieldMapper.NumberType;
|
||||
import org.elasticsearch.script.NumberSortScript;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.NumberSortScript;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.elasticsearch.search.lookup.SearchLookup;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
|
|
|
@ -28,8 +28,8 @@ import org.elasticsearch.index.fielddata.SortedNumericDoubleValues;
|
|||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.elasticsearch.index.mapper.NumberFieldMapper.NumberFieldType;
|
||||
import org.elasticsearch.index.mapper.NumberFieldMapper.NumberType;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.elasticsearch.script.TermsSetQueryScript;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.opensearch.script.TermsSetQueryScript;
|
||||
import org.elasticsearch.search.lookup.SearchLookup;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.elasticsearch.action.search.SearchRequest;
|
|||
import org.elasticsearch.common.Strings;
|
||||
import org.elasticsearch.index.IndexNotFoundException;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.elasticsearch.common.bytes.BytesArray;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.test.ESSingleNodeTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@ import org.elasticsearch.plugins.ScriptPlugin;
|
|||
import org.elasticsearch.plugins.SearchPlugin;
|
||||
import org.opensearch.rest.RestController;
|
||||
import org.opensearch.rest.RestHandler;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptEngine;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptEngine;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
|
|
@ -26,12 +26,12 @@ import org.apache.logging.log4j.Logger;
|
|||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.apache.logging.log4j.util.Supplier;
|
||||
import org.elasticsearch.SpecialPermission;
|
||||
import org.elasticsearch.script.GeneralScriptException;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptEngine;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.GeneralScriptException;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptEngine;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
import java.io.Reader;
|
||||
import java.io.StringReader;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|||
import org.opensearch.rest.BaseRestHandler;
|
||||
import org.opensearch.rest.RestRequest;
|
||||
import org.opensearch.rest.action.RestToXContentListener;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.ScriptType;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.elasticsearch.common.xcontent.ToXContentObject;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.ScriptType;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.script.mustache;
|
|||
import org.opensearch.action.ActionRequestBuilder;
|
||||
import org.elasticsearch.action.search.SearchRequest;
|
||||
import org.elasticsearch.client.OpenSearchClient;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.ScriptType;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.opensearch.action.support.HandledTransportAction;
|
|||
import org.elasticsearch.client.node.NodeClient;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.tasks.Task;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -33,10 +33,10 @@ import org.elasticsearch.common.xcontent.XContentFactory;
|
|||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.opensearch.rest.action.search.RestSearchAction;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||
import org.elasticsearch.search.internal.SearchContext;
|
||||
import org.opensearch.tasks.Task;
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
|
||||
package org.opensearch.script.mustache;
|
||||
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptEngine;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptEngine;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.util.Map;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.elasticsearch.action.search.SearchRequest;
|
|||
import org.elasticsearch.common.bytes.BytesArray;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.opensearch.rest.RestRequest;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.Scroll;
|
||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
|
|
@ -22,8 +22,8 @@ import com.github.mustachejava.MustacheFactory;
|
|||
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
import org.opensearch.script.Script;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@ package org.opensearch.script.mustache;
|
|||
import org.elasticsearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentHelper;
|
||||
import org.elasticsearch.script.ScriptEngine;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.ScriptEngine;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.hamcrest.Matcher;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.script.mustache;
|
||||
|
||||
import org.elasticsearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.RandomSearchRequestGenerator;
|
||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||
import org.elasticsearch.test.AbstractWireSerializingTestCase;
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.elasticsearch.common.xcontent.XContentParseException;
|
|||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.test.AbstractXContentTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.painless.spi;
|
||||
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.painless;
|
|||
import org.opensearch.painless.lookup.PainlessCast;
|
||||
import org.opensearch.painless.lookup.PainlessLookupUtility;
|
||||
import org.opensearch.painless.lookup.def;
|
||||
import org.elasticsearch.script.JodaCompatibleZonedDateTime;
|
||||
import org.opensearch.script.JodaCompatibleZonedDateTime;
|
||||
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.painless.lookup.PainlessLookup;
|
|||
import org.opensearch.painless.lookup.PainlessLookupUtility;
|
||||
import org.opensearch.painless.lookup.PainlessMethod;
|
||||
import org.opensearch.painless.symbol.FunctionTable;
|
||||
import org.elasticsearch.script.JodaCompatibleZonedDateTime;
|
||||
import org.opensearch.script.JodaCompatibleZonedDateTime;
|
||||
|
||||
import java.lang.invoke.CallSite;
|
||||
import java.lang.invoke.MethodHandle;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.painless;
|
|||
import org.opensearch.painless.lookup.PainlessCast;
|
||||
import org.opensearch.painless.lookup.PainlessMethod;
|
||||
import org.opensearch.painless.lookup.def;
|
||||
import org.elasticsearch.script.JodaCompatibleZonedDateTime;
|
||||
import org.opensearch.script.JodaCompatibleZonedDateTime;
|
||||
import org.objectweb.asm.ClassVisitor;
|
||||
import org.objectweb.asm.Label;
|
||||
import org.objectweb.asm.Opcodes;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.painless.api.Debug;
|
|||
import org.opensearch.painless.lookup.PainlessClass;
|
||||
import org.opensearch.painless.lookup.PainlessLookup;
|
||||
import org.opensearch.painless.lookup.PainlessLookupUtility;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptException;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -48,11 +48,11 @@ import org.elasticsearch.plugins.ScriptPlugin;
|
|||
import org.elasticsearch.repositories.RepositoriesService;
|
||||
import org.opensearch.rest.RestController;
|
||||
import org.opensearch.rest.RestHandler;
|
||||
import org.elasticsearch.script.IngestScript;
|
||||
import org.elasticsearch.script.ScoreScript;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptEngine;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.opensearch.script.IngestScript;
|
||||
import org.opensearch.script.ScoreScript;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptEngine;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.elasticsearch.search.aggregations.pipeline.MovingFunctionScript;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.watcher.ResourceWatcherService;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.painless;
|
||||
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.BitSet;
|
||||
|
|
|
@ -26,9 +26,9 @@ import org.opensearch.painless.lookup.PainlessLookup;
|
|||
import org.opensearch.painless.lookup.PainlessLookupBuilder;
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.opensearch.painless.symbol.ScriptScope;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptEngine;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptEngine;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.objectweb.asm.ClassWriter;
|
||||
import org.objectweb.asm.Opcodes;
|
||||
import org.objectweb.asm.Type;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.painless;
|
||||
|
||||
import org.elasticsearch.script.JodaCompatibleZonedDateTime;
|
||||
import org.opensearch.script.JodaCompatibleZonedDateTime;
|
||||
|
||||
import java.time.ZonedDateTime;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.painless;
|
||||
|
||||
import org.elasticsearch.script.JodaCompatibleZonedDateTime;
|
||||
import org.opensearch.script.JodaCompatibleZonedDateTime;
|
||||
import org.objectweb.asm.Handle;
|
||||
import org.objectweb.asm.Opcodes;
|
||||
import org.objectweb.asm.Type;
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.opensearch.painless.lookup.PainlessLookup;
|
|||
import org.opensearch.rest.BaseRestHandler;
|
||||
import org.opensearch.rest.RestRequest;
|
||||
import org.opensearch.rest.action.RestToXContentListener;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.tasks.Task;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.opensearch.painless.lookup.PainlessClassBinding;
|
|||
import org.opensearch.painless.lookup.PainlessInstanceBinding;
|
||||
import org.opensearch.painless.lookup.PainlessLookup;
|
||||
import org.opensearch.painless.lookup.PainlessMethod;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -72,12 +72,12 @@ import org.elasticsearch.indices.IndicesService;
|
|||
import org.opensearch.rest.BaseRestHandler;
|
||||
import org.opensearch.rest.RestRequest;
|
||||
import org.opensearch.rest.action.RestToXContentListener;
|
||||
import org.elasticsearch.script.FilterScript;
|
||||
import org.elasticsearch.script.ScoreScript;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.FilterScript;
|
||||
import org.opensearch.script.ScoreScript;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ import org.opensearch.painless.symbol.Decorations.IRNodeDecoration;
|
|||
import org.opensearch.painless.symbol.Decorations.MethodEscape;
|
||||
import org.opensearch.painless.symbol.FunctionTable.LocalFunction;
|
||||
import org.opensearch.painless.symbol.ScriptScope;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.objectweb.asm.Opcodes;
|
||||
import org.objectweb.asm.commons.Method;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.painless;
|
|||
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.opensearch.painless.spi.WhitelistLoader;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.painless;
|
||||
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.painless;
|
||||
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.painless;
|
|||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.opensearch.painless.spi.WhitelistInstanceBinding;
|
||||
import org.opensearch.painless.spi.WhitelistLoader;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.elasticsearch.common.io.stream.StreamInput;
|
|||
import org.opensearch.painless.lookup.PainlessLookup;
|
||||
import org.opensearch.painless.lookup.PainlessLookupBuilder;
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.opensearch.painless.lookup.PainlessLookup;
|
|||
import org.opensearch.painless.lookup.PainlessLookupBuilder;
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.opensearch.painless.symbol.ScriptScope;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
package org.opensearch.painless;
|
||||
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.elasticsearch.script.ScriptFactory;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptFactory;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.index.IndexService;
|
||||
import org.elasticsearch.index.query.QueryShardContext;
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.elasticsearch.script.NumberSortScript;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.opensearch.script.NumberSortScript;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.elasticsearch.test.ESSingleNodeTestCase;
|
||||
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.painless;
|
||||
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptException;
|
||||
|
||||
import java.nio.CharBuffer;
|
||||
import java.util.Arrays;
|
||||
|
|
|
@ -24,8 +24,8 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.opensearch.painless.antlr.Walker;
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.opensearch.painless.spi.WhitelistLoader;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.apache.lucene.index.LeafReaderContext;
|
|||
import org.apache.lucene.index.memory.MemoryIndex;
|
||||
import org.apache.lucene.search.Scorable;
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptedMetricAggContexts;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptedMetricAggContexts;
|
||||
import org.elasticsearch.search.lookup.LeafSearchLookup;
|
||||
import org.elasticsearch.search.lookup.SearchLookup;
|
||||
import org.elasticsearch.search.lookup.SourceLookup;
|
||||
|
|
|
@ -38,9 +38,9 @@ import org.apache.lucene.store.ByteBuffersDirectory;
|
|||
import org.apache.lucene.store.Directory;
|
||||
import org.elasticsearch.index.similarity.ScriptedSimilarity;
|
||||
import org.opensearch.painless.spi.Whitelist;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.SimilarityScript;
|
||||
import org.elasticsearch.script.SimilarityWeightScript;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.SimilarityScript;
|
||||
import org.opensearch.script.SimilarityWeightScript;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.painless;
|
|||
|
||||
import junit.framework.AssertionFailedError;
|
||||
import org.apache.lucene.util.Constants;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptException;
|
||||
|
||||
import java.lang.invoke.WrongMethodTypeException;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -27,10 +27,10 @@ import org.opensearch.painless.PainlessPlugin;
|
|||
import org.opensearch.painless.action.PainlessExecuteAction.Request;
|
||||
import org.opensearch.painless.action.PainlessExecuteAction.Response;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptException;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptException;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.test.ESSingleNodeTestCase;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -32,9 +32,9 @@ import org.elasticsearch.common.xcontent.XContentType;
|
|||
import org.elasticsearch.index.query.MatchAllQueryBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
import org.opensearch.painless.action.PainlessExecuteAction.Request.ContextSetup;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.SearchModule;
|
||||
import org.elasticsearch.test.AbstractWireSerializingTestCase;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# whitelist for tests
|
||||
|
||||
# TODO: remove this when the transition from Joda to Java datetimes is completed
|
||||
class org.elasticsearch.script.JodaCompatibleZonedDateTime {
|
||||
class org.opensearch.script.JodaCompatibleZonedDateTime {
|
||||
(Instant, ZoneId)
|
||||
}
|
||||
|
||||
|
|
|
@ -29,10 +29,10 @@ import org.elasticsearch.index.query.BoolQueryBuilder;
|
|||
import org.elasticsearch.index.query.InnerHitBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.MockScriptEngine;
|
||||
import org.elasticsearch.script.MockScriptPlugin;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.MockScriptEngine;
|
||||
import org.opensearch.script.MockScriptPlugin;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder;
|
||||
|
|
|
@ -86,8 +86,8 @@ import org.opensearch.join.ParentJoinPlugin;
|
|||
import org.opensearch.join.query.HasChildQueryBuilder;
|
||||
import org.opensearch.join.query.HasParentQueryBuilder;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.MockScriptPlugin;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.opensearch.script.MockScriptPlugin;
|
||||
import org.opensearch.script.Script;
|
||||
import org.elasticsearch.test.ESSingleNodeTestCase;
|
||||
import org.elasticsearch.test.InternalSettingsPlugin;
|
||||
import org.junit.Before;
|
||||
|
|
|
@ -36,9 +36,9 @@ import org.elasticsearch.index.query.QueryBuilder;
|
|||
import org.elasticsearch.index.query.QueryBuilders;
|
||||
import org.elasticsearch.index.query.QueryShardContext;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.MockScriptPlugin;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.MockScriptPlugin;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.lookup.LeafDocLookup;
|
||||
import org.elasticsearch.search.sort.SortOrder;
|
||||
import org.elasticsearch.test.ESSingleNodeTestCase;
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.elasticsearch.common.xcontent.ToXContentObject;
|
|||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentParserUtils;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.opensearch.script.Script;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -34,9 +34,9 @@ import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
|
|||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.script.TemplateScript;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.tasks.Task;
|
||||
|
|
|
@ -32,8 +32,8 @@ import org.elasticsearch.common.xcontent.json.JsonXContent;
|
|||
import org.elasticsearch.index.query.MatchAllQueryBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
import org.opensearch.index.rankeval.RankEvalSpec.ScriptWithId;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.elasticsearch.client.node.NodeClient;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.transport.TransportService;
|
||||
|
|
|
@ -42,8 +42,8 @@ import org.elasticsearch.index.reindex.UpdateByQueryRequestBuilder;
|
|||
import org.elasticsearch.index.shard.IndexingOperationListener;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.elasticsearch.script.ScriptType;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptType;
|
||||
import org.elasticsearch.search.sort.SortOrder;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
import org.opensearch.tasks.TaskInfo;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue