[Rename] remaining classes in o.e (#352)
This commit refactors the remaining classes from o.e to the o.opensearch namespace. All references throughout the codebase have been refactored. Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
This commit is contained in:
parent
972d8ea920
commit
07ca47a256
|
@ -29,7 +29,7 @@ import org.apache.http.message.BasicRequestLine;
|
|||
import org.apache.http.message.BasicStatusLine;
|
||||
import org.apache.http.nio.entity.NByteArrayEntity;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
import org.elasticsearch.client.Response;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.client.AbstractResponseTestCase;
|
||||
import org.opensearch.cluster.ClusterName;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.bouncycastle.openpgp.PGPUtil;
|
|||
import org.bouncycastle.openpgp.jcajce.JcaPGPObjectFactory;
|
||||
import org.bouncycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator;
|
||||
import org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider;
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.bootstrap.JarHell;
|
||||
import org.opensearch.cli.EnvironmentAwareCommand;
|
||||
|
|
|
@ -41,7 +41,7 @@ import org.bouncycastle.openpgp.operator.jcajce.JcaPGPDigestCalculatorProviderBu
|
|||
import org.bouncycastle.openpgp.operator.jcajce.JcaPGPKeyPair;
|
||||
import org.bouncycastle.openpgp.operator.jcajce.JcePBESecretKeyDecryptorBuilder;
|
||||
import org.bouncycastle.openpgp.operator.jcajce.JcePBESecretKeyEncryptorBuilder;
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.cli.ExitCodes;
|
||||
import org.elasticsearch.cli.MockTerminal;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.ingest.common;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.time.DateFormatter;
|
||||
import org.elasticsearch.ingest.AbstractProcessor;
|
||||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
|
||||
package org.opensearch.ingest.common;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.Nullable;
|
||||
import org.opensearch.common.time.DateFormatter;
|
||||
import org.opensearch.common.util.LocaleUtils;
|
||||
import org.elasticsearch.ingest.AbstractProcessor;
|
||||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
import org.opensearch.ingest.AbstractProcessor;
|
||||
import org.opensearch.ingest.ConfigurationUtils;
|
||||
import org.opensearch.ingest.IngestDocument;
|
||||
import org.opensearch.ingest.Processor;
|
||||
import org.opensearch.script.ScriptService;
|
||||
import org.opensearch.script.TemplateScript;
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import com.maxmind.geoip2.record.Country;
|
|||
import com.maxmind.geoip2.record.Location;
|
||||
import com.maxmind.geoip2.record.Subdivision;
|
||||
import org.opensearch.OpenSearchParseException;
|
||||
import org.elasticsearch.SpecialPermission;
|
||||
import org.opensearch.SpecialPermission;
|
||||
import org.opensearch.common.network.InetAddresses;
|
||||
import org.opensearch.common.network.NetworkAddress;
|
||||
import org.elasticsearch.ingest.AbstractProcessor;
|
||||
|
|
|
@ -25,13 +25,13 @@ import org.apache.lucene.expressions.js.JavascriptCompiler;
|
|||
import org.apache.lucene.expressions.js.VariableContext;
|
||||
import org.apache.lucene.search.DoubleValuesSource;
|
||||
import org.apache.lucene.search.SortField;
|
||||
import org.elasticsearch.SpecialPermission;
|
||||
import org.opensearch.SpecialPermission;
|
||||
import org.opensearch.common.Nullable;
|
||||
import org.elasticsearch.index.fielddata.IndexFieldData;
|
||||
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.opensearch.index.fielddata.IndexFieldData;
|
||||
import org.opensearch.index.fielddata.IndexNumericFieldData;
|
||||
import org.opensearch.index.mapper.DateFieldMapper;
|
||||
import org.opensearch.index.mapper.GeoPointFieldMapper.GeoPointFieldType;
|
||||
import org.opensearch.index.mapper.MappedFieldType;
|
||||
import org.opensearch.script.AggregationScript;
|
||||
import org.opensearch.script.BucketAggregationScript;
|
||||
import org.opensearch.script.BucketAggregationSelectorScript;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.opensearch.script.mustache;
|
||||
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.action.admin.cluster.storedscripts.GetStoredScriptResponse;
|
||||
import org.opensearch.action.bulk.BulkRequestBuilder;
|
||||
import org.opensearch.action.search.SearchRequest;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.apache.logging.log4j.LogManager;
|
|||
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.opensearch.SpecialPermission;
|
||||
import org.opensearch.script.GeneralScriptException;
|
||||
import org.opensearch.script.Script;
|
||||
import org.opensearch.script.ScriptContext;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.painless;
|
||||
|
||||
import org.elasticsearch.SpecialPermission;
|
||||
import org.opensearch.SpecialPermission;
|
||||
import org.opensearch.common.settings.Settings;
|
||||
import org.opensearch.painless.Compiler.Loader;
|
||||
import org.opensearch.painless.lookup.PainlessLookup;
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.apache.lucene.search.TotalHitCountCollector;
|
|||
import org.apache.lucene.search.TotalHits;
|
||||
import org.apache.lucene.search.Weight;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.search.MaxScoreCollector;
|
||||
import org.opensearch.common.lucene.Lucene;
|
||||
import org.opensearch.common.lucene.search.TopDocsAndMaxScore;
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.apache.lucene.util.BitSet;
|
|||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.SetOnce;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.get.GetRequest;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.percolator;
|
|||
|
||||
import org.apache.lucene.search.Query;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.action.admin.indices.mapping.put.PutMappingRequest;
|
||||
import org.opensearch.action.get.GetRequest;
|
||||
import org.opensearch.action.get.GetResponse;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.index.reindex;
|
|||
|
||||
import org.apache.lucene.search.TotalHits;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionType;
|
||||
import org.opensearch.action.ActionListener;
|
||||
|
@ -67,14 +67,8 @@ import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
|||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.opensearch.index.Index;
|
||||
import org.opensearch.index.engine.VersionConflictEngineException;
|
||||
import org.opensearch.index.reindex.AbstractBulkByScrollRequest;
|
||||
import org.opensearch.index.reindex.BulkByScrollResponse;
|
||||
import org.opensearch.index.reindex.BulkByScrollTask;
|
||||
import org.opensearch.index.reindex.ClientScrollableHitSource;
|
||||
import org.opensearch.index.reindex.ScrollableHitSource;
|
||||
import org.opensearch.index.reindex.ScrollableHitSource.Hit;
|
||||
import org.opensearch.index.reindex.ScrollableHitSource.SearchFailure;
|
||||
import org.opensearch.index.reindex.WorkerBulkByScrollTaskState;
|
||||
import org.opensearch.index.shard.ShardId;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.opensearch.search.SearchHit;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.index.reindex;
|
|||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionFuture;
|
||||
import org.opensearch.action.admin.cluster.node.tasks.cancel.CancelTasksRequest;
|
||||
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.index.reindex;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionFuture;
|
||||
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
||||
import org.opensearch.action.admin.cluster.node.tasks.list.TaskGroup;
|
||||
|
|
|
@ -22,15 +22,15 @@ package org.opensearch.systemd;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.lucene.util.SetOnce;
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.client.Client;
|
||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||
import org.opensearch.cluster.service.ClusterService;
|
||||
import org.opensearch.common.io.stream.NamedWriteableRegistry;
|
||||
import org.opensearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.env.NodeEnvironment;
|
||||
import org.opensearch.env.Environment;
|
||||
import org.opensearch.env.NodeEnvironment;
|
||||
import org.opensearch.plugins.ClusterPlugin;
|
||||
import org.opensearch.plugins.Plugin;
|
||||
import org.opensearch.repositories.RepositoriesService;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.systemd;
|
||||
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.common.CheckedConsumer;
|
||||
import org.opensearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
|
|
@ -23,7 +23,7 @@ import io.netty.channel.ChannelHandler;
|
|||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.handler.codec.MessageToMessageDecoder;
|
||||
import io.netty.handler.codec.http.FullHttpRequest;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.http.netty4;
|
|||
import io.netty.channel.ChannelHandler;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.channel.SimpleChannelInboundHandler;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.http.HttpPipelinedRequest;
|
||||
|
||||
@ChannelHandler.Sharable
|
||||
|
|
|
@ -41,7 +41,7 @@ import io.netty.handler.timeout.ReadTimeoutHandler;
|
|||
import io.netty.util.AttributeKey;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.network.NetworkService;
|
||||
import org.opensearch.common.settings.ClusterSettings;
|
||||
import org.opensearch.common.settings.Setting;
|
||||
|
|
|
@ -26,7 +26,7 @@ import io.netty.channel.ChannelFuture;
|
|||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.channel.ChannelPromise;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.bytes.ReleasableBytesReference;
|
||||
import org.opensearch.common.lease.Releasables;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.transport.netty4;
|
|||
import io.netty.channel.Channel;
|
||||
import io.netty.channel.ChannelFuture;
|
||||
import io.netty.channel.ChannelPromise;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.common.Nullable;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
|
|
|
@ -35,7 +35,7 @@ import io.netty.util.AttributeKey;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.cluster.node.DiscoveryNode;
|
||||
import org.opensearch.common.SuppressForbidden;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch;
|
||||
package org.opensearch;
|
||||
|
||||
/**
|
||||
* Provides a static final field that can be used to check if assertions are enabled. Since this field might be used elsewhere to check if
|
|
@ -7,7 +7,7 @@
|
|||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
|
@ -17,13 +17,12 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch;
|
||||
package org.opensearch;
|
||||
|
||||
import org.opensearch.common.Booleans;
|
||||
import org.opensearch.common.io.FileSystemUtils;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
import org.opensearch.Version;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
|
@ -7,7 +7,7 @@
|
|||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch;
|
||||
package org.opensearch;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonParseException;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
|
@ -28,7 +28,7 @@ import org.apache.lucene.index.IndexFormatTooOldException;
|
|||
import org.opensearch.action.ShardOperationFailedException;
|
||||
import org.opensearch.common.Nullable;
|
||||
import org.opensearch.common.util.concurrent.EsRejectedExecutionException;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.opensearch.index.Index;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
|
||||
import java.io.IOException;
|
|
@ -736,8 +736,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
|||
org.opensearch.index.snapshots.IndexShardSnapshotFailedException::new, 0, UNKNOWN_VERSION_ADDED),
|
||||
DFS_PHASE_EXECUTION_EXCEPTION(org.opensearch.search.dfs.DfsPhaseExecutionException.class,
|
||||
org.opensearch.search.dfs.DfsPhaseExecutionException::new, 1, UNKNOWN_VERSION_ADDED),
|
||||
EXECUTION_CANCELLED_EXCEPTION(org.elasticsearch.common.util.CancellableThreads.ExecutionCancelledException.class,
|
||||
org.elasticsearch.common.util.CancellableThreads.ExecutionCancelledException::new, 2, UNKNOWN_VERSION_ADDED),
|
||||
EXECUTION_CANCELLED_EXCEPTION(org.opensearch.common.util.CancellableThreads.ExecutionCancelledException.class,
|
||||
org.opensearch.common.util.CancellableThreads.ExecutionCancelledException::new, 2, UNKNOWN_VERSION_ADDED),
|
||||
MASTER_NOT_DISCOVERED_EXCEPTION(org.opensearch.discovery.MasterNotDiscoveredException.class,
|
||||
org.opensearch.discovery.MasterNotDiscoveredException::new, 3, UNKNOWN_VERSION_ADDED),
|
||||
ELASTICSEARCH_SECURITY_EXCEPTION(org.opensearch.OpenSearchSecurityException.class,
|
||||
|
@ -770,8 +770,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
|||
org.opensearch.cluster.routing.IllegalShardRoutingStateException::new, 17, UNKNOWN_VERSION_ADDED),
|
||||
BROADCAST_SHARD_OPERATION_FAILED_EXCEPTION(org.opensearch.action.support.broadcast.BroadcastShardOperationFailedException.class,
|
||||
org.opensearch.action.support.broadcast.BroadcastShardOperationFailedException::new, 18, UNKNOWN_VERSION_ADDED),
|
||||
RESOURCE_NOT_FOUND_EXCEPTION(org.elasticsearch.ResourceNotFoundException.class,
|
||||
org.elasticsearch.ResourceNotFoundException::new, 19, UNKNOWN_VERSION_ADDED),
|
||||
RESOURCE_NOT_FOUND_EXCEPTION(org.opensearch.ResourceNotFoundException.class,
|
||||
org.opensearch.ResourceNotFoundException::new, 19, UNKNOWN_VERSION_ADDED),
|
||||
ACTION_TRANSPORT_EXCEPTION(org.opensearch.transport.ActionTransportException.class,
|
||||
org.opensearch.transport.ActionTransportException::new, 20, UNKNOWN_VERSION_ADDED),
|
||||
ELASTICSEARCH_GENERATION_EXCEPTION(org.opensearch.OpenSearchGenerationException.class,
|
||||
|
@ -875,8 +875,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
|||
org.opensearch.cluster.IncompatibleClusterStateVersionException::new, 75, UNKNOWN_VERSION_ADDED),
|
||||
RECOVERY_ENGINE_EXCEPTION(org.opensearch.index.engine.RecoveryEngineException.class,
|
||||
org.opensearch.index.engine.RecoveryEngineException::new, 76, UNKNOWN_VERSION_ADDED),
|
||||
UNCATEGORIZED_EXECUTION_EXCEPTION(org.elasticsearch.common.util.concurrent.UncategorizedExecutionException.class,
|
||||
org.elasticsearch.common.util.concurrent.UncategorizedExecutionException::new, 77, UNKNOWN_VERSION_ADDED),
|
||||
UNCATEGORIZED_EXECUTION_EXCEPTION(org.opensearch.common.util.concurrent.UncategorizedExecutionException.class,
|
||||
org.opensearch.common.util.concurrent.UncategorizedExecutionException::new, 77, UNKNOWN_VERSION_ADDED),
|
||||
TIMESTAMP_PARSING_EXCEPTION(org.opensearch.action.TimestampParsingException.class,
|
||||
org.opensearch.action.TimestampParsingException::new, 78, UNKNOWN_VERSION_ADDED),
|
||||
ROUTING_MISSING_EXCEPTION(org.opensearch.action.RoutingMissingException.class,
|
||||
|
@ -948,8 +948,6 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
|||
ReplicationOperation.RetryOnPrimaryException::new, 117, UNKNOWN_VERSION_ADDED),
|
||||
ELASTICSEARCH_TIMEOUT_EXCEPTION(org.opensearch.OpenSearchTimeoutException.class,
|
||||
org.opensearch.OpenSearchTimeoutException::new, 118, UNKNOWN_VERSION_ADDED),
|
||||
ELASTICSEARCH_TIMEOUT_EXCEPTION(org.opensearch.OpenSearchTimeoutException.class,
|
||||
org.opensearch.OpenSearchTimeoutException::new, 118, UNKNOWN_VERSION_ADDED),
|
||||
QUERY_PHASE_EXECUTION_EXCEPTION(org.opensearch.search.query.QueryPhaseExecutionException.class,
|
||||
org.opensearch.search.query.QueryPhaseExecutionException::new, 119, UNKNOWN_VERSION_ADDED),
|
||||
REPOSITORY_VERIFICATION_EXCEPTION(org.opensearch.repositories.RepositoryVerificationException.class,
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
*/
|
||||
package org.opensearch;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
|
@ -17,10 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch;
|
||||
package org.opensearch;
|
||||
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.opensearch.index.Index;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
|
||||
import java.io.IOException;
|
|
@ -7,7 +7,7 @@
|
|||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch;
|
||||
package org.opensearch;
|
||||
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.rest.RestStatus;
|
|
@ -7,7 +7,7 @@
|
|||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch;
|
||||
package org.opensearch;
|
||||
|
||||
import java.security.BasicPermission;
|
||||
|
|
@ -19,8 +19,6 @@
|
|||
|
||||
package org.opensearch;
|
||||
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.cluster.metadata.IndexMetadata;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.opensearch.common.SuppressForbidden;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.CheckedConsumer;
|
||||
import org.opensearch.common.CheckedFunction;
|
||||
import org.opensearch.common.CheckedRunnable;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action.admin.cluster.node.info;
|
||||
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.support.nodes.BaseNodeResponse;
|
||||
import org.opensearch.cluster.node.DiscoveryNode;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.action.admin.cluster.node.reload;
|
|||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.apache.logging.log4j.util.Supplier;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.FailedNodeException;
|
||||
import org.opensearch.action.support.ActionFilters;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action.admin.cluster.node.tasks.cancel;
|
||||
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.FailedNodeException;
|
||||
import org.opensearch.action.TaskOperationFailure;
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
package org.opensearch.action.admin.cluster.node.tasks.get;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.ActionListenerResponseHandler;
|
||||
import org.opensearch.action.get.GetRequest;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.action.admin.cluster.reroute;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.ActionListenerResponseHandler;
|
||||
import org.opensearch.action.admin.indices.shards.IndicesShardStoresAction;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action.admin.indices.template.get;
|
||||
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.support.ActionFilters;
|
||||
import org.opensearch.action.support.master.TransportMasterNodeReadAction;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action.admin.indices.template.get;
|
||||
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.support.ActionFilters;
|
||||
import org.opensearch.action.support.master.TransportMasterNodeReadAction;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.bulk;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.elasticsearch.Version;
|
||||
import org.opensearch.action.DocWriteRequest.OpType;
|
||||
import org.opensearch.action.DocWriteResponse;
|
||||
|
|
|
@ -22,10 +22,10 @@ package org.opensearch.action.bulk;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.lucene.util.SparseFixedBitSet;
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.OpenSearchParseException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.elasticsearch.ResourceAlreadyExistsException;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.ResourceAlreadyExistsException;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.ActionRunnable;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.logging.log4j.LogManager;
|
|||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.apache.logging.log4j.util.MessageSupplier;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.ActionRunnable;
|
||||
import org.opensearch.action.DocWriteRequest;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action.main;
|
||||
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionResponse;
|
||||
import org.opensearch.cluster.ClusterName;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action.main;
|
||||
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.support.ActionFilters;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.logging.log4j.Logger;
|
|||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.apache.lucene.util.SetOnce;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.NoShardAvailableActionException;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.search;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionResponse;
|
||||
import org.opensearch.common.Nullable;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.search;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ShardOperationFailedException;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.common.io.stream.StreamOutput;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.search;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.OriginalIndices;
|
||||
import org.opensearch.action.ShardOperationFailedException;
|
||||
import org.opensearch.cluster.metadata.IndexMetadata;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.support;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ShardOperationFailedException;
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
|
@ -33,7 +33,7 @@ import org.opensearch.rest.RestStatus;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import static org.elasticsearch.ExceptionsHelper.detailedMessage;
|
||||
import static org.opensearch.ExceptionsHelper.detailedMessage;
|
||||
import static org.elasticsearch.common.xcontent.ConstructingObjectParser.constructorArg;
|
||||
|
||||
public class DefaultShardOperationFailedException extends ShardOperationFailedException implements Writeable {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.support;
|
||||
|
||||
import org.apache.lucene.store.AlreadyClosedException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.NoShardAvailableActionException;
|
||||
import org.opensearch.action.UnavailableShardsException;
|
||||
import org.elasticsearch.index.IndexNotFoundException;
|
||||
|
|
|
@ -21,9 +21,9 @@ package org.opensearch.action.support.replication;
|
|||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.apache.lucene.store.AlreadyClosedException;
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.UnavailableShardsException;
|
||||
import org.opensearch.action.support.ActiveShardCount;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.support.replication;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionResponse;
|
||||
import org.opensearch.action.ShardOperationFailedException;
|
||||
import org.opensearch.cluster.metadata.IndexMetadata;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.support.replication;
|
||||
|
||||
import com.carrotsearch.hppc.cursors.IntObjectCursor;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.support.ActionFilters;
|
||||
import org.opensearch.action.support.DefaultShardOperationFailedException;
|
||||
|
|
|
@ -21,9 +21,9 @@ package org.opensearch.action.support.replication;
|
|||
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.apache.lucene.store.AlreadyClosedException;
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.elasticsearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.ActionListenerResponseHandler;
|
||||
|
|
|
@ -37,7 +37,7 @@ import java.util.Objects;
|
|||
import java.util.stream.Stream;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
import static org.elasticsearch.ExceptionsHelper.rethrowAndSuppress;
|
||||
import static org.opensearch.ExceptionsHelper.rethrowAndSuppress;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.action.support.tasks;
|
||||
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.FailedNodeException;
|
||||
import org.opensearch.action.NoSuchNodeException;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.action.update;
|
||||
|
||||
import org.elasticsearch.ResourceAlreadyExistsException;
|
||||
import org.opensearch.ResourceAlreadyExistsException;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.ActionRunnable;
|
||||
import org.opensearch.action.DocWriteRequest;
|
||||
|
@ -64,7 +64,7 @@ import java.io.IOException;
|
|||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
import static org.elasticsearch.ExceptionsHelper.unwrapCause;
|
||||
import static org.opensearch.ExceptionsHelper.unwrapCause;
|
||||
import static org.opensearch.action.bulk.TransportSingleItemBulkWriteAction.toSingleItemBulkRequest;
|
||||
import static org.opensearch.action.bulk.TransportSingleItemBulkWriteAction.wrapBulkResponse;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import joptsimple.OptionSet;
|
|||
import joptsimple.OptionSpec;
|
||||
import joptsimple.OptionSpecBuilder;
|
||||
import joptsimple.util.PathConverter;
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.cli.EnvironmentAwareCommand;
|
||||
import org.opensearch.cli.ExitCodes;
|
||||
import org.opensearch.cli.Terminal;
|
||||
|
|
|
@ -25,8 +25,8 @@ import org.apache.logging.log4j.Logger;
|
|||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
import org.opensearch.core.internal.io.IOUtils;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.elasticsearch.Version;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.admin.cluster.node.liveness.LivenessRequest;
|
||||
import org.opensearch.action.admin.cluster.node.liveness.LivenessResponse;
|
||||
|
@ -40,8 +40,8 @@ import org.opensearch.common.Randomness;
|
|||
import org.opensearch.common.settings.Settings;
|
||||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.opensearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.elasticsearch.common.util.concurrent.ConcurrentCollections;
|
||||
import org.opensearch.common.util.concurrent.AbstractRunnable;
|
||||
import org.opensearch.common.util.concurrent.ConcurrentCollections;
|
||||
import org.opensearch.threadpool.Scheduler;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.opensearch.transport.ConnectTransportException;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.logging.log4j.LogManager;
|
|||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.cluster.ClusterChangedEvent;
|
||||
|
|
|
@ -23,7 +23,7 @@ import com.carrotsearch.hppc.LongArrayList;
|
|||
import com.carrotsearch.hppc.cursors.IntObjectCursor;
|
||||
import com.carrotsearch.hppc.cursors.ObjectCursor;
|
||||
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.admin.indices.rollover.RolloverInfo;
|
||||
import org.opensearch.action.support.ActiveShardCount;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.cluster.metadata;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.elasticsearch.OpenSearchStatusException;
|
||||
import org.elasticsearch.ResourceAlreadyExistsException;
|
||||
import org.opensearch.ResourceAlreadyExistsException;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.admin.indices.create.CreateIndexClusterStateUpdateRequest;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.apache.logging.log4j.LogManager;
|
|||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ResourceAlreadyExistsException;
|
||||
import org.opensearch.ResourceAlreadyExistsException;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.admin.indices.alias.Alias;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.cluster.metadata;
|
|||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.admin.indices.settings.put.UpdateSettingsClusterStateUpdateRequest;
|
||||
|
|
|
@ -23,7 +23,7 @@ import com.carrotsearch.hppc.ObjectIntHashMap;
|
|||
import com.carrotsearch.hppc.cursors.ObjectCursor;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.lucene.util.CollectionUtil;
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.cluster.ClusterState;
|
||||
import org.opensearch.cluster.metadata.IndexMetadata;
|
||||
import org.opensearch.cluster.metadata.Metadata;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.cluster.routing;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.cluster.ClusterState;
|
||||
import org.opensearch.cluster.metadata.Metadata;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.cluster.routing.allocation;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.cluster.routing.ShardRouting;
|
||||
import org.opensearch.common.Nullable;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.cluster.service;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.action.support.PlainActionFuture;
|
||||
import org.opensearch.cluster.AckedClusterStateTaskListener;
|
||||
import org.opensearch.cluster.ClusterChangedEvent;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.common;
|
|||
|
||||
import org.apache.lucene.util.BytesRefBuilder;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.util.CollectionUtils;
|
||||
import org.elasticsearch.common.xcontent.ToXContent;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.common.compress;
|
||||
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.io.stream.BytesStreamOutput;
|
||||
import org.opensearch.common.lease.Releasable;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.locationtech.jts.geom.GeometryFactory;
|
|||
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.opensearch.common.geo.GeoShapeType;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.common.io.stream;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.common.logging;
|
||||
|
||||
import org.elasticsearch.Build;
|
||||
import org.opensearch.Build;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.common.util.concurrent.ThreadContext;
|
||||
import org.opensearch.tasks.Task;
|
||||
|
|
|
@ -82,7 +82,7 @@ import org.apache.lucene.store.Lock;
|
|||
import org.apache.lucene.util.Bits;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.Version;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.Nullable;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.opensearch.common.SuppressForbidden;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.common.lucene;
|
|||
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.LeafReader;
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.elasticsearch.index.shard.ShardId;
|
||||
import org.elasticsearch.index.shard.ShardUtils;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.logging.log4j.Logger;
|
|||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.apache.lucene.search.spell.LevenshteinDistance;
|
||||
import org.apache.lucene.util.CollectionUtil;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.collect.Tuple;
|
||||
import org.opensearch.common.regex.Regex;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.common.util.concurrent;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.SuppressForbidden;
|
||||
import org.opensearch.common.logging.DeprecationLogger;
|
||||
import org.opensearch.common.settings.Setting;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.common.util.concurrent;
|
||||
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.common.lease.Releasable;
|
||||
import org.opensearch.common.unit.TimeValue;
|
||||
import org.opensearch.index.engine.EngineException;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.common.util.concurrent;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
|
||||
/**
|
||||
* A class used to wrap a {@code Runnable} that allows capturing the time of the task since creation
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.discovery;
|
|||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.elasticsearch.Assertions;
|
||||
import org.opensearch.Assertions;
|
||||
import org.opensearch.cluster.ClusterState;
|
||||
import org.opensearch.cluster.coordination.Coordinator;
|
||||
import org.opensearch.cluster.coordination.ElectionStrategy;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.logging.log4j.LogManager;
|
|||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.cluster.ClusterChangedEvent;
|
||||
import org.opensearch.cluster.ClusterName;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
|
@ -20,4 +20,4 @@
|
|||
/**
|
||||
* A distributed RESTful search engine.
|
||||
*/
|
||||
package org.elasticsearch;
|
||||
package org.opensearch;
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.repositories;
|
||||
|
||||
import org.elasticsearch.OpenSearchParseException;
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.common.Nullable;
|
||||
import org.opensearch.common.UUIDs;
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.apache.lucene.store.IndexOutput;
|
|||
import org.apache.lucene.store.RateLimiter;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.SetOnce;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.ActionRunnable;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.apache.logging.log4j.message.ParameterizedMessage;
|
|||
import org.apache.logging.log4j.util.Supplier;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.opensearch.OpenSearchStatusException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.bytes.BytesArray;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.xcontent.ToXContent;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.rest.action;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.FailedNodeException;
|
||||
import org.opensearch.action.ShardOperationFailedException;
|
||||
import org.opensearch.action.support.broadcast.BroadcastResponse;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.opensearch.rest.action.admin.indices;
|
||||
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.rest.action.document;
|
||||
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.action.ActionRequestValidationException;
|
||||
import org.opensearch.action.get.GetRequest;
|
||||
import org.opensearch.action.get.GetResponse;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.rest.action.search;
|
||||
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.action.ActionRequestValidationException;
|
||||
import org.opensearch.action.search.SearchAction;
|
||||
import org.opensearch.action.search.SearchContextId;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.script;
|
|||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.StringHelper;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.geo.GeoDistance;
|
||||
import org.opensearch.common.geo.GeoPoint;
|
||||
import org.opensearch.common.geo.GeoUtils;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.opensearch.script;
|
||||
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.cluster.ClusterState;
|
||||
import org.opensearch.cluster.Diff;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.script;
|
|||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.elasticsearch.ResourceNotFoundException;
|
||||
import org.opensearch.ResourceNotFoundException;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.admin.cluster.storedscripts.DeleteStoredScriptRequest;
|
||||
import org.opensearch.action.admin.cluster.storedscripts.GetStoredScriptRequest;
|
||||
|
|
|
@ -19,13 +19,13 @@
|
|||
package org.opensearch.search.lookup;
|
||||
|
||||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.common.Nullable;
|
||||
import org.opensearch.common.logging.DeprecationLogger;
|
||||
import org.elasticsearch.index.fielddata.IndexFieldData;
|
||||
import org.elasticsearch.index.fielddata.ScriptDocValues;
|
||||
import org.elasticsearch.index.mapper.MappedFieldType;
|
||||
import org.elasticsearch.index.mapper.MapperService;
|
||||
import org.opensearch.index.fielddata.IndexFieldData;
|
||||
import org.opensearch.index.fielddata.ScriptDocValues;
|
||||
import org.opensearch.index.mapper.MappedFieldType;
|
||||
import org.opensearch.index.mapper.MapperService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.security.AccessController;
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.lucene.search.spell.NGramDistance;
|
|||
import org.apache.lucene.search.spell.StringDistance;
|
||||
import org.apache.lucene.search.spell.SuggestMode;
|
||||
import org.apache.lucene.util.automaton.LevenshteinAutomata;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.opensearch.common.io.stream.StreamInput;
|
||||
|
|
|
@ -24,7 +24,7 @@ import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.StepListener;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.tasks;
|
|||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.elasticsearch.OpenSearchSecurityException;
|
||||
import org.elasticsearch.ExceptionsHelper;
|
||||
import org.opensearch.ExceptionsHelper;
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.StepListener;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue