[Rename] refactor libs/grok. (#262)

Refactor the `libs/grok` module to rename the package name from `org.elasticsearch.grok` to `org.opensearch.grok` as part of the rename to OpenSearch work.

Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
Rabi Panda 2021-03-11 12:17:56 -08:00 committed by Nick Knize
parent 0f34db0d88
commit eae9b0531b
14 changed files with 25 additions and 25 deletions

View File

@ -23,7 +23,7 @@ dependencies {
api 'org.jruby.jcodings:jcodings:1.0.44' api 'org.jruby.jcodings:jcodings:1.0.44'
testImplementation(project(":test:framework")) { testImplementation(project(":test:framework")) {
exclude group: 'org.elasticsearch', module: 'elasticsearch-grok' exclude group: 'org.opensearch', module: 'opensearch-grok'
} }
} }

View File

@ -17,7 +17,7 @@
* under the License. * under the License.
*/ */
package org.elasticsearch.grok; package org.opensearch.grok;
import java.util.function.Consumer; import java.util.function.Consumer;

View File

@ -17,7 +17,7 @@
* under the License. * under the License.
*/ */
package org.elasticsearch.grok; package org.opensearch.grok;
import org.jcodings.specific.UTF8Encoding; import org.jcodings.specific.UTF8Encoding;
import org.joni.Matcher; import org.joni.Matcher;
@ -291,7 +291,7 @@ public final class Grok {
} }
/** /**
* Load built-in patterns. * Load built-in patterns.
*/ */
private static Map<String, String> loadBuiltinPatterns() { private static Map<String, String> loadBuiltinPatterns() {
String[] patternNames = new String[] { String[] patternNames = new String[] {

View File

@ -17,7 +17,7 @@
* under the License. * under the License.
*/ */
package org.elasticsearch.grok; package org.opensearch.grok;
import org.joni.NameEntry; import org.joni.NameEntry;

View File

@ -17,7 +17,7 @@
* under the License. * under the License.
*/ */
package org.elasticsearch.grok; package org.opensearch.grok;
import org.joni.Region; import org.joni.Region;

View File

@ -17,9 +17,9 @@
* under the License. * under the License.
*/ */
package org.elasticsearch.grok; package org.opensearch.grok;
import org.elasticsearch.grok.GrokCaptureConfig.NativeExtracterMap; import org.opensearch.grok.GrokCaptureConfig.NativeExtracterMap;
import org.joni.Region; import org.joni.Region;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.elasticsearch.grok; package org.opensearch.grok;
import org.joni.Matcher; import org.joni.Matcher;

View File

@ -17,9 +17,9 @@
* under the License. * under the License.
*/ */
package org.elasticsearch.grok; package org.opensearch.grok;
import org.elasticsearch.grok.GrokCaptureConfig.NativeExtracterMap; import org.opensearch.grok.GrokCaptureConfig.NativeExtracterMap;
import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.ESTestCase;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
@ -38,12 +38,12 @@ import java.util.function.Function;
import java.util.function.IntConsumer; import java.util.function.IntConsumer;
import java.util.function.LongConsumer; import java.util.function.LongConsumer;
import static org.elasticsearch.grok.GrokCaptureType.BOOLEAN; import static org.opensearch.grok.GrokCaptureType.BOOLEAN;
import static org.elasticsearch.grok.GrokCaptureType.DOUBLE; import static org.opensearch.grok.GrokCaptureType.DOUBLE;
import static org.elasticsearch.grok.GrokCaptureType.FLOAT; import static org.opensearch.grok.GrokCaptureType.FLOAT;
import static org.elasticsearch.grok.GrokCaptureType.INTEGER; import static org.opensearch.grok.GrokCaptureType.INTEGER;
import static org.elasticsearch.grok.GrokCaptureType.LONG; import static org.opensearch.grok.GrokCaptureType.LONG;
import static org.elasticsearch.grok.GrokCaptureType.STRING; import static org.opensearch.grok.GrokCaptureType.STRING;
import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.elasticsearch.grok; package org.opensearch.grok;
import java.util.Map; import java.util.Map;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;

View File

@ -21,8 +21,8 @@ package org.opensearch.ingest.common;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.elasticsearch.grok.Grok; import org.opensearch.grok.Grok;
import org.elasticsearch.grok.MatcherWatchdog; import org.opensearch.grok.MatcherWatchdog;
import org.elasticsearch.ingest.AbstractProcessor; import org.elasticsearch.ingest.AbstractProcessor;
import org.elasticsearch.ingest.ConfigurationUtils; import org.elasticsearch.ingest.ConfigurationUtils;
import org.elasticsearch.ingest.IngestDocument; import org.elasticsearch.ingest.IngestDocument;

View File

@ -32,7 +32,7 @@ import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.xcontent.ToXContentObject; import org.elasticsearch.common.xcontent.ToXContentObject;
import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.grok.Grok; import org.opensearch.grok.Grok;
import org.opensearch.rest.BaseRestHandler; import org.opensearch.rest.BaseRestHandler;
import org.opensearch.rest.RestRequest; import org.opensearch.rest.RestRequest;
import org.opensearch.rest.action.RestToXContentListener; import org.opensearch.rest.action.RestToXContentListener;

View File

@ -29,8 +29,8 @@ import org.elasticsearch.common.settings.Setting;
import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.settings.SettingsFilter; import org.elasticsearch.common.settings.SettingsFilter;
import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.grok.Grok; import org.opensearch.grok.Grok;
import org.elasticsearch.grok.MatcherWatchdog; import org.opensearch.grok.MatcherWatchdog;
import org.elasticsearch.ingest.DropProcessor; import org.elasticsearch.ingest.DropProcessor;
import org.elasticsearch.ingest.PipelineProcessor; import org.elasticsearch.ingest.PipelineProcessor;
import org.elasticsearch.ingest.Processor; import org.elasticsearch.ingest.Processor;

View File

@ -20,7 +20,7 @@
package org.opensearch.ingest.common; package org.opensearch.ingest.common;
import org.elasticsearch.OpenSearchParseException; import org.elasticsearch.OpenSearchParseException;
import org.elasticsearch.grok.MatcherWatchdog; import org.opensearch.grok.MatcherWatchdog;
import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.ESTestCase;
import java.util.Collections; import java.util.Collections;

View File

@ -19,7 +19,7 @@
package org.opensearch.ingest.common; package org.opensearch.ingest.common;
import org.elasticsearch.grok.MatcherWatchdog; import org.opensearch.grok.MatcherWatchdog;
import org.elasticsearch.ingest.IngestDocument; import org.elasticsearch.ingest.IngestDocument;
import org.elasticsearch.ingest.RandomDocumentPicks; import org.elasticsearch.ingest.RandomDocumentPicks;
import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.ESTestCase;