[Rename] modules/ingest-common (#202)

This commit refactors the ingest-common module as part of the Elasticsearch to OpenSearch renaming.

Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
Rabi Panda 2021-03-04 16:05:55 -08:00 committed by Nick Knize
parent 3b73223abb
commit f46569d829
95 changed files with 100 additions and 100 deletions

View File

@ -16,19 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
apply plugin: 'elasticsearch.yaml-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
apply plugin: 'opensearch.yaml-rest-test'
apply plugin: 'opensearch.internal-cluster-test'
esplugin {
description 'Module for ingest processors that do not require additional security permissions or have large dependencies and resources'
classname 'org.elasticsearch.ingest.common.IngestCommonPlugin'
classname 'org.opensearch.ingest.common.IngestCommonPlugin'
extendedPlugins = ['lang-painless']
}
dependencies {
compileOnly project(':modules:lang-painless')
api project(':libs:elasticsearch-grok')
api project(':libs:elasticsearch-dissect')
api project(':libs:opensearch-grok')
api project(':libs:opensearch-dissect')
}
restResources {

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.action.admin.cluster.node.stats.NodesStatsResponse;
import org.elasticsearch.action.support.WriteRequest;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.unit.ByteSizeValue;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.time.DateFormatter;
import org.elasticsearch.common.time.DateFormatters;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.common.time.DateFormatter;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.common.Nullable;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.dissect.DissectParser;
import org.elasticsearch.ingest.AbstractProcessor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.CompoundProcessor;
import org.elasticsearch.ingest.IngestDocument;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.Version;
import org.elasticsearch.action.ActionListener;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.util.Map;
import java.util.regex.Pattern;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.apache.lucene.analysis.charfilter.HTMLStripCharFilter;
import org.elasticsearch.OpenSearchException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionResponse;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.bytes.BytesArray;
import org.elasticsearch.common.bytes.BytesReference;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.util.set.Sets;
import org.elasticsearch.ingest.AbstractProcessor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.util.Locale;
import java.util.Map;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.util.Map;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.painless.spi.PainlessExtension;
import org.elasticsearch.painless.spi.Whitelist;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.Nullable;
import org.elasticsearch.common.bytes.BytesReference;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.util.Map;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.util.Locale;
import java.util.Map;

View File

@ -1 +1 @@
org.elasticsearch.ingest.common.ProcessorsWhitelistExtension
org.opensearch.ingest.common.ProcessorsWhitelistExtension

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.ingest.RandomDocumentPicks;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.Processor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchException;
import org.elasticsearch.OpenSearchParseException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.util.set.Sets;
import org.elasticsearch.ingest.IngestDocument;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
public class BytesProcessorFactoryTests extends AbstractStringProcessorFactoryTestCase {
@Override

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchException;
import org.elasticsearch.common.unit.ByteSizeUnit;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.test.ESTestCase;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.util.ArrayList;
import java.util.Collections;
@ -32,7 +32,7 @@ import org.elasticsearch.ingest.RandomDocumentPicks;
import org.elasticsearch.test.ESTestCase;
import static org.elasticsearch.ingest.IngestDocumentMatcher.assertIngestDocument;
import static org.elasticsearch.ingest.common.ConvertProcessor.Type;
import static org.opensearch.ingest.common.ConvertProcessor.Type;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.not;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.test.ESTestCase;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import com.carrotsearch.randomizedtesting.annotations.Name;
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.bootstrap.JavaVersion;
import org.elasticsearch.common.time.DateFormatter;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.ingest.TestTemplateService;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.time.DateFormatter;
import org.elasticsearch.ingest.IngestDocument;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.ingest.TestTemplateService;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.RandomDocumentPicks;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.dissect.DissectException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.collect.MapBuilder;
import org.elasticsearch.dissect.DissectException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.test.ESTestCase;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.Processor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchException;
import org.elasticsearch.OpenSearchParseException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.Processor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.ingest.Processor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.CompoundProcessor;
import org.elasticsearch.ingest.IngestDocument;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.grok.MatcherWatchdog;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.support.ActionFilters;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.grok.MatcherWatchdog;
import org.elasticsearch.ingest.IngestDocument;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.util.regex.Pattern;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
public class HtmlStripProcessorFactoryTests extends AbstractStringProcessorFactoryTestCase {
@Override

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
public class HtmlStripProcessorTests extends AbstractStringProcessorTestCase<String> {

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.test.ESTestCase;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.Processor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchException;
import org.elasticsearch.OpenSearchParseException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.xcontent.XContentBuilder;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchException;
import org.elasticsearch.OpenSearchParseException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.util.set.Sets;
import org.elasticsearch.ingest.IngestDocument;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
public class LowercaseProcessorFactoryTests extends AbstractStringProcessorFactoryTestCase {
@Override

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.util.Locale;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchException;
import org.elasticsearch.OpenSearchParseException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.Processor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.ingest.TestTemplateService;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.Processor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchException;
import org.elasticsearch.common.settings.Settings;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.ingest.IngestDocument;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchException;
import org.elasticsearch.OpenSearchParseException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.IngestDocument.Metadata;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.ingest.RandomDocumentPicks;

View File

@ -17,12 +17,12 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.Processor;
import org.elasticsearch.ingest.RandomDocumentPicks;
import org.elasticsearch.ingest.common.SortProcessor.SortOrder;
import org.opensearch.ingest.common.SortProcessor.SortOrder;
import org.elasticsearch.test.ESTestCase;
import java.util.ArrayList;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.test.ESTestCase;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.Processor;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
public class TrimProcessorFactoryTests extends AbstractStringProcessorFactoryTestCase {
@Override

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
public class TrimProcessorTests extends AbstractStringProcessorTestCase<String> {

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
public class URLDecodeProcessorFactoryTests extends AbstractStringProcessorFactoryTestCase {
@Override

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
public class UppercaseProcessorFactoryTests extends AbstractStringProcessorFactoryTestCase {
@Override

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import java.util.Locale;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.ingest.common;
package org.opensearch.ingest.common;
import com.carrotsearch.randomizedtesting.annotations.Name;
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;