[Rename] o.e.common.util (#337)
This commit refactors the o.e.common.util package to the o.opensearch.common.util namespace. All references throughout the codebase have been refactored. Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
This commit is contained in:
parent
b118646bef
commit
3fc453eace
|
@ -63,7 +63,7 @@ import org.elasticsearch.common.SuppressForbidden;
|
|||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.lucene.uid.Versions;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.common.xcontent.DeprecationHandler;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.common.xcontent.ToXContent;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.client.indices;
|
|||
|
||||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
|
||||
/**
|
||||
* A request to retrieve information about an index.
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.opensearch.action.support.master.AcknowledgedRequest;
|
|||
import org.opensearch.client.cluster.RemoteInfoRequest;
|
||||
import org.opensearch.cluster.health.ClusterHealthStatus;
|
||||
import org.opensearch.common.Priority;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.hamcrest.CoreMatchers;
|
||||
import org.junit.Assert;
|
||||
|
|
|
@ -64,7 +64,7 @@ import org.elasticsearch.common.CheckedFunction;
|
|||
import org.opensearch.common.Strings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.junit.Assert;
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.elasticsearch.common.Booleans;
|
|||
import org.elasticsearch.common.CheckedRunnable;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.opensearch.common.xcontent.XContentHelper;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
|
|
|
@ -55,7 +55,7 @@ import org.opensearch.client.core.MainResponse;
|
|||
import org.elasticsearch.common.CheckedFunction;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.collect.Tuple;
|
||||
import org.elasticsearch.common.util.set.Sets;
|
||||
import org.opensearch.common.util.set.Sets;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.common.xcontent.ToXContent;
|
||||
import org.elasticsearch.common.xcontent.ToXContentFragment;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.client.core;
|
|||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.opensearch.client.AbstractRequestTestCase;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.index.query.MatchAllQueryBuilder;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.nio;
|
||||
|
||||
import org.elasticsearch.common.CheckedFunction;
|
||||
import org.elasticsearch.common.util.PageCacheRecycler;
|
||||
import org.opensearch.common.util.PageCacheRecycler;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
import java.net.InetSocketAddress;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import static org.elasticsearch.common.util.concurrent.EsExecutors.daemonThreadFactory;
|
||||
import static org.opensearch.common.util.concurrent.EsExecutors.daemonThreadFactory;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
public class NioSelectorGroupTests extends ESTestCase {
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.nio;
|
|||
|
||||
import org.elasticsearch.common.CheckedRunnable;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.junit.Before;
|
||||
import org.mockito.ArgumentCaptor;
|
||||
|
|
|
@ -21,8 +21,8 @@ package org.opensearch.search.aggregations.matrix.stats;
|
|||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.apache.lucene.search.ScoreMode;
|
||||
import org.opensearch.common.lease.Releasables;
|
||||
import org.elasticsearch.common.util.BigArrays;
|
||||
import org.elasticsearch.common.util.ObjectArray;
|
||||
import org.opensearch.common.util.BigArrays;
|
||||
import org.opensearch.common.util.ObjectArray;
|
||||
import org.elasticsearch.index.fielddata.NumericDoubleValues;
|
||||
import org.opensearch.search.MultiValueMode;
|
||||
import org.elasticsearch.search.aggregations.Aggregator;
|
||||
|
|
|
@ -30,7 +30,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
|
||||
import static java.util.Collections.unmodifiableSet;
|
||||
import static org.elasticsearch.common.util.set.Sets.newHashSet;
|
||||
import static org.opensearch.common.util.set.Sets.newHashSet;
|
||||
|
||||
public class HtmlStripCharFilterFactory extends AbstractCharFilterFactory {
|
||||
private final Set<String> escapedTags;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.ingest.common;
|
|||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.time.DateFormatter;
|
||||
import org.elasticsearch.common.util.LocaleUtils;
|
||||
import org.opensearch.common.util.LocaleUtils;
|
||||
import org.elasticsearch.ingest.AbstractProcessor;
|
||||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.ingest.common;
|
||||
|
||||
import org.elasticsearch.common.util.set.Sets;
|
||||
import org.opensearch.common.util.set.Sets;
|
||||
import org.elasticsearch.ingest.AbstractProcessor;
|
||||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
|
|
|
@ -22,16 +22,16 @@ package org.opensearch.ingest.common;
|
|||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.logging.DeprecationLogger;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.xcontent.LoggingDeprecationHandler;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
||||
import org.elasticsearch.ingest.AbstractProcessor;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.opensearch.ingest.AbstractProcessor;
|
||||
import org.opensearch.ingest.IngestDocument;
|
||||
import org.opensearch.ingest.Processor;
|
||||
import org.opensearch.script.DynamicMap;
|
||||
import org.opensearch.script.IngestScript;
|
||||
import org.opensearch.script.Script;
|
||||
|
@ -44,7 +44,7 @@ import java.util.Arrays;
|
|||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
|
||||
import static org.elasticsearch.ingest.ConfigurationUtils.newConfigurationException;
|
||||
import static org.opensearch.ingest.ConfigurationUtils.newConfigurationException;
|
||||
|
||||
/**
|
||||
* Processor that evaluates a script with an ingest document in its context.
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.ingest.common;
|
||||
|
||||
import org.elasticsearch.common.util.set.Sets;
|
||||
import org.opensearch.common.util.set.Sets;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.IngestDocument.Metadata;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.ingest.common;
|
|||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.opensearch.OpenSearchParseException;
|
||||
import org.elasticsearch.common.util.set.Sets;
|
||||
import org.opensearch.common.util.set.Sets;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.ingest.common;
|
||||
|
||||
import org.elasticsearch.common.util.set.Sets;
|
||||
import org.opensearch.common.util.set.Sets;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.elasticsearch.ingest.RandomDocumentPicks;
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
package org.opensearch.script.mustache;
|
||||
|
||||
import com.github.mustachejava.reflect.ReflectionObjectHandler;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.common.util.iterable.Iterables;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.iterable.Iterables;
|
||||
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.AbstractMap;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.painless.lookup;
|
||||
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
|
||||
import java.lang.invoke.MethodHandle;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.painless.lookup;
|
||||
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
|
||||
import java.lang.invoke.MethodHandle;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -31,8 +31,8 @@ import org.apache.lucene.util.Bits;
|
|||
import org.opensearch.common.lease.Releasable;
|
||||
import org.opensearch.common.lease.Releasables;
|
||||
import org.opensearch.common.lucene.Lucene;
|
||||
import org.elasticsearch.common.util.BigArrays;
|
||||
import org.elasticsearch.common.util.BitArray;
|
||||
import org.opensearch.common.util.BigArrays;
|
||||
import org.opensearch.common.util.BitArray;
|
||||
import org.elasticsearch.search.aggregations.Aggregator;
|
||||
import org.elasticsearch.search.aggregations.AggregatorFactories;
|
||||
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.action.search.SearchType;
|
|||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.opensearch.common.io.stream.NamedWriteableRegistry;
|
||||
import org.opensearch.common.io.stream.Writeable.Reader;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.test.AbstractWireSerializingTestCase;
|
||||
import org.junit.AfterClass;
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.opensearch.client.ParentTaskAssigningClient;
|
|||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.unit.ByteSizeValue;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.index.VersionType;
|
||||
import org.elasticsearch.index.mapper.IdFieldMapper;
|
||||
import org.elasticsearch.index.mapper.IndexFieldMapper;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.elasticsearch.common.ParseField;
|
|||
import org.opensearch.common.ParsingException;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.collect.Tuple;
|
||||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
||||
import org.elasticsearch.common.xcontent.ObjectParser;
|
||||
import org.elasticsearch.common.xcontent.ObjectParser.ValueType;
|
||||
|
|
|
@ -39,14 +39,14 @@ import org.elasticsearch.common.Nullable;
|
|||
import org.opensearch.common.Strings;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.common.xcontent.LoggingDeprecationHandler;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.common.xcontent.XContentParseException;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.index.reindex.RejectAwareActionListener;
|
||||
import org.elasticsearch.index.reindex.ScrollableHitSource;
|
||||
import org.opensearch.index.reindex.RejectAwareActionListener;
|
||||
import org.opensearch.index.reindex.ScrollableHitSource;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
|
||||
|
|
|
@ -62,8 +62,8 @@ import org.opensearch.common.bytes.BytesArray;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.text.Text;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.opensearch.index.Index;
|
||||
import org.opensearch.index.engine.VersionConflictEngineException;
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.opensearch.common.bytes.BytesArray;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.text.Text;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.index.reindex.ClientScrollableHitSource;
|
||||
import org.elasticsearch.index.reindex.ScrollableHitSource;
|
||||
import org.opensearch.search.SearchHit;
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.opensearch.common.io.stream.NamedWriteableRegistry;
|
|||
import org.opensearch.common.network.NetworkModule;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.opensearch.env.Environment;
|
||||
import org.opensearch.env.NodeEnvironment;
|
||||
|
|
|
@ -35,9 +35,8 @@ import org.opensearch.common.bytes.BytesArray;
|
|||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.index.reindex.RemoteInfo;
|
||||
import org.opensearch.indices.SystemIndices;
|
||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.opensearch.client.Client;
|
|||
import org.opensearch.common.bytes.BytesArray;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.http.HttpInfo;
|
||||
import org.elasticsearch.index.query.QueryBuilders;
|
||||
import org.elasticsearch.index.reindex.AbstractBulkByScrollRequestBuilder;
|
||||
|
|
|
@ -20,11 +20,11 @@
|
|||
package org.opensearch.index.reindex.remote;
|
||||
|
||||
import org.opensearch.action.search.ShardSearchFailure;
|
||||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.common.xcontent.ToXContent;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.index.reindex.ScrollableHitSource;
|
||||
import org.opensearch.index.reindex.ScrollableHitSource;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.hamcrest.Matchers;
|
||||
|
||||
|
|
|
@ -50,8 +50,8 @@ import org.opensearch.common.io.Streams;
|
|||
import org.opensearch.common.unit.ByteSizeUnit;
|
||||
import org.opensearch.common.unit.ByteSizeValue;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.opensearch.common.util.concurrent.EsExecutors;
|
||||
import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.index.reindex.RejectAwareActionListener;
|
||||
import org.elasticsearch.index.reindex.ScrollableHitSource;
|
||||
import org.elasticsearch.index.reindex.ScrollableHitSource.Response;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.opensearch.common.blobstore.BlobStore;
|
|||
import org.opensearch.common.blobstore.url.URLBlobStore;
|
||||
import org.elasticsearch.common.settings.Setting;
|
||||
import org.elasticsearch.common.settings.Setting.Property;
|
||||
import org.elasticsearch.common.util.URIPattern;
|
||||
import org.opensearch.common.util.URIPattern;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.opensearch.env.Environment;
|
||||
import org.elasticsearch.indices.recovery.RecoverySettings;
|
||||
|
|
|
@ -49,8 +49,8 @@ import org.elasticsearch.common.settings.Setting.Property;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.unit.ByteSizeUnit;
|
||||
import org.opensearch.common.unit.ByteSizeValue;
|
||||
import org.elasticsearch.common.util.BigArrays;
|
||||
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||
import org.opensearch.common.util.BigArrays;
|
||||
import org.opensearch.common.util.concurrent.EsExecutors;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.core.internal.io.IOUtils;
|
||||
import org.elasticsearch.core.internal.net.NetUtils;
|
||||
|
|
|
@ -27,8 +27,8 @@ import org.opensearch.common.network.NetworkService;
|
|||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Setting;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.util.BigArrays;
|
||||
import org.elasticsearch.common.util.PageCacheRecycler;
|
||||
import org.opensearch.common.util.BigArrays;
|
||||
import org.opensearch.common.util.PageCacheRecycler;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.http.HttpServerTransport;
|
||||
import org.opensearch.http.netty4.Netty4HttpServerTransport;
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.opensearch.transport.netty4.Netty4Transport;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import static org.elasticsearch.common.util.concurrent.EsExecutors.daemonThreadFactory;
|
||||
import static org.opensearch.common.util.concurrent.EsExecutors.daemonThreadFactory;
|
||||
|
||||
/**
|
||||
* Creates and returns {@link io.netty.channel.EventLoopGroup} instances. It will return a shared group for
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.elasticsearch.ExceptionsHelper;
|
|||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.bytes.ReleasableBytesReference;
|
||||
import org.opensearch.common.lease.Releasables;
|
||||
import org.elasticsearch.common.util.PageCacheRecycler;
|
||||
import org.opensearch.common.util.PageCacheRecycler;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.opensearch.transport.InboundPipeline;
|
||||
import org.opensearch.transport.Transport;
|
||||
|
|
|
@ -47,8 +47,8 @@ import org.elasticsearch.common.settings.Setting.Property;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.unit.ByteSizeUnit;
|
||||
import org.opensearch.common.unit.ByteSizeValue;
|
||||
import org.elasticsearch.common.util.PageCacheRecycler;
|
||||
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||
import org.opensearch.common.util.PageCacheRecycler;
|
||||
import org.opensearch.common.util.concurrent.EsExecutors;
|
||||
import org.elasticsearch.core.internal.net.NetUtils;
|
||||
import org.elasticsearch.indices.breaker.CircuitBreakerService;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
|
@ -66,7 +66,7 @@ import java.util.Map;
|
|||
|
||||
import static org.elasticsearch.common.settings.Setting.byteSizeSetting;
|
||||
import static org.elasticsearch.common.settings.Setting.intSetting;
|
||||
import static org.elasticsearch.common.util.concurrent.ConcurrentCollections.newConcurrentMap;
|
||||
import static org.opensearch.common.util.concurrent.ConcurrentCollections.newConcurrentMap;
|
||||
|
||||
/**
|
||||
* There are 4 types of connections per node, low/med/high/ping. Low if for batch oriented APIs (like recovery or
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.elasticsearch.common.util.MockBigArrays;
|
||||
import org.elasticsearch.common.util.MockPageCacheRecycler;
|
||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
import org.elasticsearch.http.HttpServerTransport;
|
||||
import org.elasticsearch.http.HttpTransportSettings;
|
||||
import org.elasticsearch.indices.breaker.NoneCircuitBreakerService;
|
||||
|
|
|
@ -56,7 +56,7 @@ import org.opensearch.common.unit.ByteSizeValue;
|
|||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.MockBigArrays;
|
||||
import org.elasticsearch.common.util.MockPageCacheRecycler;
|
||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
import org.elasticsearch.http.BindHttpException;
|
||||
import org.elasticsearch.http.CorsHandler;
|
||||
import org.elasticsearch.http.HttpServerTransport;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.opensearch.common.network.NetworkService;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.elasticsearch.common.util.MockPageCacheRecycler;
|
||||
import org.elasticsearch.common.util.PageCacheRecycler;
|
||||
import org.opensearch.common.util.PageCacheRecycler;
|
||||
import org.elasticsearch.indices.breaker.NoneCircuitBreakerService;
|
||||
import org.elasticsearch.mocksocket.MockSocket;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
|
|
@ -28,8 +28,8 @@ import org.elasticsearch.common.bytes.AbstractBytesReferenceTestCase;
|
|||
import org.opensearch.common.bytes.BytesArray;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.io.stream.ReleasableBytesStreamOutput;
|
||||
import org.elasticsearch.common.util.BigArrays;
|
||||
import org.elasticsearch.common.util.PageCacheRecycler;
|
||||
import org.opensearch.common.util.BigArrays;
|
||||
import org.opensearch.common.util.PageCacheRecycler;
|
||||
import org.elasticsearch.indices.breaker.NoneCircuitBreakerService;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.opensearch.common.network.NetworkService;
|
|||
import org.opensearch.common.network.NetworkUtils;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.util.MockPageCacheRecycler;
|
||||
import org.elasticsearch.common.util.PageCacheRecycler;
|
||||
import org.opensearch.common.util.PageCacheRecycler;
|
||||
import org.elasticsearch.indices.breaker.NoneCircuitBreakerService;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.opensearch.threadpool.TestThreadPool;
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.opensearch.common.network.NetworkService;
|
|||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.elasticsearch.common.util.PageCacheRecycler;
|
||||
import org.opensearch.common.util.PageCacheRecycler;
|
||||
import org.elasticsearch.core.internal.io.IOUtils;
|
||||
import org.elasticsearch.core.internal.net.NetUtils;
|
||||
import org.elasticsearch.indices.breaker.NoneCircuitBreakerService;
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.lucene.index.IndexFormatTooNewException;
|
|||
import org.apache.lucene.index.IndexFormatTooOldException;
|
||||
import org.opensearch.action.ShardOperationFailedException;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.common.Strings;
|
|||
import org.opensearch.common.io.stream.NamedWriteable;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.util.BigArrays;
|
||||
import org.opensearch.common.util.BigArrays;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.opensearch.rest.action.search.RestSearchAction;
|
||||
import org.opensearch.script.ScriptService;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.common.ParsingException;
|
|||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.common.logging.DeprecationLogger;
|
||||
import org.elasticsearch.common.util.Comparators;
|
||||
import org.opensearch.common.util.Comparators;
|
||||
import org.elasticsearch.common.xcontent.XContent;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.watcher;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.opensearch.common.io.FileSystemUtils;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.action;
|
|||
import org.elasticsearch.common.CheckedConsumer;
|
||||
import org.elasticsearch.common.CheckedRunnable;
|
||||
import org.opensearch.common.CheckedSupplier;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
|
||||
/**
|
||||
* Base class for {@link Runnable}s that need to call {@link ActionListener#onFailure(Exception)} in case an uncaught
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
package org.opensearch.action;
|
||||
|
||||
import org.elasticsearch.common.CheckedConsumer;
|
||||
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||
import org.elasticsearch.common.util.concurrent.FutureUtils;
|
||||
import org.elasticsearch.common.util.concurrent.ListenableFuture;
|
||||
import org.opensearch.common.util.concurrent.EsExecutors;
|
||||
import org.opensearch.common.util.concurrent.FutureUtils;
|
||||
import org.opensearch.common.util.concurrent.ListenableFuture;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.function.Consumer;
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.opensearch.common.Strings;
|
|||
import org.opensearch.common.inject.Inject;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.opensearch.index.IndexNotFoundException;
|
||||
import org.opensearch.node.NodeClosedException;
|
||||
import org.opensearch.tasks.Task;
|
||||
|
|
|
@ -31,14 +31,14 @@ import org.opensearch.action.support.HandledTransportAction;
|
|||
import org.opensearch.client.Client;
|
||||
import org.opensearch.client.OriginSettingClient;
|
||||
import org.opensearch.cluster.node.DiscoveryNode;
|
||||
import org.elasticsearch.cluster.service.ClusterService;
|
||||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.opensearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.xcontent.LoggingDeprecationHandler;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.opensearch.common.xcontent.XContentHelper;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.index.IndexNotFoundException;
|
||||
import org.opensearch.index.IndexNotFoundException;
|
||||
import org.opensearch.tasks.Task;
|
||||
import org.opensearch.tasks.TaskId;
|
||||
import org.opensearch.tasks.TaskInfo;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.action.admin.cluster.repositories.get;
|
|||
|
||||
import org.opensearch.action.support.master.MasterNodeReadOperationRequestBuilder;
|
||||
import org.opensearch.client.OpenSearchClient;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
|
||||
/**
|
||||
* Get repository request builder
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.action.admin.cluster.snapshots.get;
|
|||
|
||||
import org.opensearch.action.support.master.MasterNodeOperationRequestBuilder;
|
||||
import org.opensearch.client.OpenSearchClient;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
|
||||
/**
|
||||
* Get snapshots request builder
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.action.admin.cluster.snapshots.status;
|
|||
|
||||
import org.opensearch.action.support.master.MasterNodeOperationRequestBuilder;
|
||||
import org.opensearch.client.OpenSearchClient;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
|
||||
/**
|
||||
* Snapshots status request builder
|
||||
|
|
|
@ -38,8 +38,8 @@ import org.opensearch.cluster.service.ClusterService;
|
|||
import org.opensearch.common.Strings;
|
||||
import org.opensearch.common.inject.Inject;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.common.util.set.Sets;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.set.Sets;
|
||||
import org.opensearch.index.shard.ShardId;
|
||||
import org.opensearch.index.snapshots.IndexShardSnapshotStatus;
|
||||
import org.opensearch.repositories.IndexId;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.opensearch.action.ActionResponse;
|
|||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.opensearch.action.support.master.MasterNodeReadOperationRequestBuilder;
|
||||
import org.opensearch.client.OpenSearchClient;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
|
||||
public abstract class BaseAliasesRequestBuilder<Response extends ActionResponse,
|
||||
Builder extends BaseAliasesRequestBuilder<Response, Builder>>
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.opensearch.common.collect.ImmutableOpenMap;
|
|||
import org.opensearch.common.inject.Inject;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.logging.DeprecationLogger;
|
||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.indices.SystemIndices;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.opensearch.transport.TransportService;
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.opensearch.action.support.IndicesOptions;
|
|||
import org.opensearch.action.support.master.AcknowledgedRequest;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.opensearch.common.Strings;
|
|||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.common.xcontent.ToXContentFragment;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.index.Index;
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.opensearch.common.io.stream.StreamInput;
|
|||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.common.regex.Regex;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.opensearch.index.Index;
|
||||
import org.opensearch.snapshots.SnapshotInProgressException;
|
||||
import org.opensearch.snapshots.SnapshotsService;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.opensearch.action.support.IndicesOptions;
|
|||
import org.opensearch.action.support.master.AcknowledgedRequest;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.cluster.routing.ShardRouting;
|
|||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.util.iterable.Iterables;
|
||||
import org.opensearch.common.util.iterable.Iterables;
|
||||
import org.elasticsearch.common.xcontent.ToXContentFragment;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.indices.flush.ShardsSyncedFlushResult;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.opensearch.action.ActionRequestValidationException;
|
|||
import org.opensearch.action.support.master.info.ClusterInfoRequest;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.action.admin.indices.mapping.get;
|
|||
import org.opensearch.action.ActionRequestBuilder;
|
||||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.opensearch.client.OpenSearchClient;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
|
||||
/** A helper class to build {@link GetFieldMappingsRequest} objects */
|
||||
public class GetFieldMappingsRequestBuilder
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.opensearch.common.bytes.BytesReference;
|
|||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||
import org.opensearch.common.xcontent.XContentHelper;
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.opensearch.action.support.IndicesOptions;
|
|||
import org.opensearch.action.support.master.AcknowledgedRequest;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.opensearch.action.support.master.AcknowledgedRequest;
|
|||
import org.opensearch.cluster.metadata.IndexMetadata.APIBlock;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.opensearch.common.Strings;
|
|||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.common.xcontent.ToXContentFragment;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.index.Index;
|
||||
|
|
|
@ -44,7 +44,7 @@ import org.opensearch.common.inject.Inject;
|
|||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.common.util.concurrent.CountDown;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.opensearch.tasks.Task;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.action.admin.indices.settings.get;
|
|||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.opensearch.action.support.master.MasterNodeReadOperationRequestBuilder;
|
||||
import org.opensearch.client.OpenSearchClient;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
|
||||
public class GetSettingsRequestBuilder
|
||||
extends MasterNodeReadOperationRequestBuilder<GetSettingsRequest, GetSettingsResponse, GetSettingsRequestBuilder> {
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.opensearch.common.collect.ImmutableOpenMap;
|
|||
import org.elasticsearch.common.collect.Tuple;
|
||||
import org.opensearch.common.inject.Inject;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.gateway.AsyncShardFetch;
|
||||
import org.opensearch.gateway.TransportNodesListGatewayStartedShards;
|
||||
import org.opensearch.gateway.TransportNodesListGatewayStartedShards.NodeGatewayStartedShards;
|
||||
|
|
|
@ -58,7 +58,7 @@ import org.opensearch.cluster.service.ClusterService;
|
|||
import org.opensearch.common.inject.Inject;
|
||||
import org.opensearch.common.lease.Releasable;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.index.Index;
|
||||
import org.opensearch.index.IndexNotFoundException;
|
||||
import org.opensearch.index.IndexingPressure;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
|||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.opensearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.tasks.Task;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.opensearch.transport.RemoteClusterAware;
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.opensearch.cluster.block.ClusterBlockLevel;
|
|||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.opensearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.opensearch.tasks.Task;
|
||||
import org.opensearch.transport.TransportService;
|
||||
|
|
|
@ -34,8 +34,8 @@ import org.elasticsearch.cluster.routing.GroupShardsIterator;
|
|||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.lease.Releasable;
|
||||
import org.opensearch.common.lease.Releasables;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action.search;
|
||||
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.opensearch.action.support.GroupedActionListener;
|
|||
import org.opensearch.cluster.node.DiscoveryNode;
|
||||
import org.opensearch.cluster.node.DiscoveryNodes;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.transport.Transport;
|
||||
import org.opensearch.transport.TransportResponse;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
package org.opensearch.action.search;
|
||||
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.search;
|
||||
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.index.query.BoolQueryBuilder;
|
||||
import org.elasticsearch.index.query.InnerHitBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
|
|
|
@ -23,8 +23,8 @@ import org.apache.logging.log4j.Logger;
|
|||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.apache.lucene.search.ScoreDoc;
|
||||
import org.opensearch.action.OriginalIndices;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.search.RescoreDocIds;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.opensearch.common.io.stream.NamedWriteableRegistry;
|
|||
import org.opensearch.common.lease.Releasable;
|
||||
import org.opensearch.common.lease.Releasables;
|
||||
import org.elasticsearch.common.lucene.search.TopDocsAndMaxScore;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContextBuilder;
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.apache.logging.log4j.Logger;
|
|||
import org.opensearch.action.OriginalIndices;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.lease.Releasable;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.InternalSearchResponse;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.elasticsearch.ExceptionsHelper;
|
|||
import org.opensearch.action.ShardOperationFailedException;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action.search;
|
||||
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
|
|
@ -25,8 +25,8 @@ import org.opensearch.action.ActionListener;
|
|||
import org.opensearch.cluster.node.DiscoveryNode;
|
||||
import org.opensearch.cluster.node.DiscoveryNodes;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.logging.log4j.Logger;
|
|||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.cluster.node.DiscoveryNode;
|
||||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.search.fetch.QueryFetchSearchResult;
|
||||
import org.opensearch.search.fetch.ScrollQueryFetchSearchResult;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
|
|
|
@ -25,8 +25,8 @@ import org.apache.lucene.search.ScoreDoc;
|
|||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.cluster.node.DiscoveryNode;
|
||||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.fetch.FetchSearchResult;
|
||||
import org.opensearch.search.fetch.ShardFetchRequest;
|
||||
|
|
|
@ -24,8 +24,8 @@ import org.opensearch.cluster.routing.PlainShardIterator;
|
|||
import org.opensearch.cluster.routing.ShardRouting;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.Countable;
|
||||
import org.elasticsearch.common.util.PlainIterator;
|
||||
import org.opensearch.common.util.Countable;
|
||||
import org.opensearch.common.util.PlainIterator;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.ShardSearchContextId;
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.elasticsearch.common.Nullable;
|
|||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.util.concurrent.ConcurrentCollections;
|
||||
import org.opensearch.common.util.concurrent.ConcurrentCollections;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchService;
|
||||
import org.opensearch.search.dfs.DfsSearchResult;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.action.search;
|
|||
import org.apache.lucene.store.ByteArrayDataInput;
|
||||
import org.apache.lucene.store.RAMOutputStream;
|
||||
import org.opensearch.Version;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.search.SearchPhaseResult;
|
||||
import org.opensearch.search.SearchShardTarget;
|
||||
import org.opensearch.search.internal.InternalScrollSearchRequest;
|
||||
|
|
|
@ -23,9 +23,9 @@ import org.opensearch.OpenSearchException;
|
|||
import org.opensearch.action.ActionFuture;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.BaseFuture;
|
||||
import org.elasticsearch.common.util.concurrent.FutureUtils;
|
||||
import org.elasticsearch.common.util.concurrent.UncategorizedExecutionException;
|
||||
import org.opensearch.common.util.concurrent.BaseFuture;
|
||||
import org.opensearch.common.util.concurrent.FutureUtils;
|
||||
import org.opensearch.common.util.concurrent.UncategorizedExecutionException;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
|
|
|
@ -19,12 +19,12 @@
|
|||
package org.opensearch.action.support;
|
||||
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* Restores the given {@link org.elasticsearch.common.util.concurrent.ThreadContext.StoredContext}
|
||||
* Restores the given {@link org.opensearch.common.util.concurrent.ThreadContext.StoredContext}
|
||||
* once the listener is invoked
|
||||
*/
|
||||
public final class ContextPreservingActionListener<R> implements ActionListener<R> {
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
package org.opensearch.action.support;
|
||||
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.common.util.concurrent.AtomicArray;
|
||||
import org.opensearch.common.util.concurrent.CountDown;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.action.ActionResponse;
|
|||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.opensearch.action.support.master.MasterNodeReadOperationRequestBuilder;
|
||||
import org.opensearch.client.OpenSearchClient;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
import org.opensearch.common.util.ArrayUtils;
|
||||
|
||||
public abstract class ClusterInfoRequestBuilder<Request extends ClusterInfoRequest<Request>, Response extends ActionResponse,
|
||||
Builder extends ClusterInfoRequestBuilder<Request, Response, Builder>>
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.action.support.replication;
|
|||
|
||||
import org.opensearch.action.support.RetryableAction;
|
||||
import org.opensearch.common.lease.Releasable;
|
||||
import org.elasticsearch.common.util.concurrent.ConcurrentCollections;
|
||||
import org.opensearch.common.util.concurrent.ConcurrentCollections;
|
||||
import org.elasticsearch.index.shard.IndexShardClosedException;
|
||||
import org.elasticsearch.index.shard.ReplicationGroup;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.elasticsearch.common.Nullable;
|
|||
import org.opensearch.common.breaker.CircuitBreakingException;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.index.seqno.SequenceNumbers;
|
||||
import org.elasticsearch.index.shard.ReplicationGroup;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
|||
import org.opensearch.cluster.routing.IndexShardRoutingTable;
|
||||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.opensearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||
import org.opensearch.common.util.concurrent.CountDown;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.opensearch.tasks.Task;
|
||||
import org.opensearch.transport.TransportService;
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.elasticsearch.common.Nullable;
|
|||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.index.IndexNotFoundException;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.node.NodeClosedException;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue