[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:
parent
0f34db0d88
commit
eae9b0531b
|
@ -23,7 +23,7 @@ dependencies {
|
|||
api 'org.jruby.jcodings:jcodings:1.0.44'
|
||||
|
||||
testImplementation(project(":test:framework")) {
|
||||
exclude group: 'org.elasticsearch', module: 'elasticsearch-grok'
|
||||
exclude group: 'org.opensearch', module: 'opensearch-grok'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.grok;
|
||||
package org.opensearch.grok;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.grok;
|
||||
package org.opensearch.grok;
|
||||
|
||||
import org.jcodings.specific.UTF8Encoding;
|
||||
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() {
|
||||
String[] patternNames = new String[] {
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.grok;
|
||||
package org.opensearch.grok;
|
||||
|
||||
import org.joni.NameEntry;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.grok;
|
||||
package org.opensearch.grok;
|
||||
|
||||
import org.joni.Region;
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
* 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 java.nio.charset.StandardCharsets;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.grok;
|
||||
package org.opensearch.grok;
|
||||
|
||||
import org.joni.Matcher;
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
* 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 java.nio.charset.StandardCharsets;
|
||||
|
@ -38,12 +38,12 @@ import java.util.function.Function;
|
|||
import java.util.function.IntConsumer;
|
||||
import java.util.function.LongConsumer;
|
||||
|
||||
import static org.elasticsearch.grok.GrokCaptureType.BOOLEAN;
|
||||
import static org.elasticsearch.grok.GrokCaptureType.DOUBLE;
|
||||
import static org.elasticsearch.grok.GrokCaptureType.FLOAT;
|
||||
import static org.elasticsearch.grok.GrokCaptureType.INTEGER;
|
||||
import static org.elasticsearch.grok.GrokCaptureType.LONG;
|
||||
import static org.elasticsearch.grok.GrokCaptureType.STRING;
|
||||
import static org.opensearch.grok.GrokCaptureType.BOOLEAN;
|
||||
import static org.opensearch.grok.GrokCaptureType.DOUBLE;
|
||||
import static org.opensearch.grok.GrokCaptureType.FLOAT;
|
||||
import static org.opensearch.grok.GrokCaptureType.INTEGER;
|
||||
import static org.opensearch.grok.GrokCaptureType.LONG;
|
||||
import static org.opensearch.grok.GrokCaptureType.STRING;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.is;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.grok;
|
||||
package org.opensearch.grok;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.CompletableFuture;
|
|
@ -21,8 +21,8 @@ package org.opensearch.ingest.common;
|
|||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.elasticsearch.grok.Grok;
|
||||
import org.elasticsearch.grok.MatcherWatchdog;
|
||||
import org.opensearch.grok.Grok;
|
||||
import org.opensearch.grok.MatcherWatchdog;
|
||||
import org.elasticsearch.ingest.AbstractProcessor;
|
||||
import org.elasticsearch.ingest.ConfigurationUtils;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.elasticsearch.common.io.stream.StreamInput;
|
|||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
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.RestRequest;
|
||||
import org.opensearch.rest.action.RestToXContentListener;
|
||||
|
|
|
@ -29,8 +29,8 @@ import org.elasticsearch.common.settings.Setting;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.settings.SettingsFilter;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.grok.Grok;
|
||||
import org.elasticsearch.grok.MatcherWatchdog;
|
||||
import org.opensearch.grok.Grok;
|
||||
import org.opensearch.grok.MatcherWatchdog;
|
||||
import org.elasticsearch.ingest.DropProcessor;
|
||||
import org.elasticsearch.ingest.PipelineProcessor;
|
||||
import org.elasticsearch.ingest.Processor;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.ingest.common;
|
||||
|
||||
import org.elasticsearch.OpenSearchParseException;
|
||||
import org.elasticsearch.grok.MatcherWatchdog;
|
||||
import org.opensearch.grok.MatcherWatchdog;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package org.opensearch.ingest.common;
|
||||
|
||||
import org.elasticsearch.grok.MatcherWatchdog;
|
||||
import org.opensearch.grok.MatcherWatchdog;
|
||||
import org.elasticsearch.ingest.IngestDocument;
|
||||
import org.elasticsearch.ingest.RandomDocumentPicks;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
|
Loading…
Reference in New Issue