Skip to content

Commit

Permalink
Updates data-prepper-api to the org.opensearch.dataprepper package. (#…
Browse files Browse the repository at this point in the history
…1833)

Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable authored Sep 29, 2022
1 parent cb65e46 commit 59c48e2
Show file tree
Hide file tree
Showing 393 changed files with 1,122 additions and 1,123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package org.opensearch.dataprepper.expression;

import com.amazon.dataprepper.model.event.Event;
import org.opensearch.dataprepper.model.event.Event;

/**
* @since 1.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.metrics;
package org.opensearch.dataprepper.metrics;

public class MetricNames {
private MetricNames() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.metrics;
package org.opensearch.dataprepper.metrics;

import com.amazon.dataprepper.model.configuration.PluginSetting;
import org.opensearch.dataprepper.model.configuration.PluginSetting;
import java.util.StringJoiner;
import java.util.function.ToDoubleFunction;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model;
package org.opensearch.dataprepper.model;

/**
* CheckpointState keeps track of a summary of records processed by a data-prepper worker thread.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.annotations;
package org.opensearch.dataprepper.model.annotations;

import com.amazon.dataprepper.model.configuration.PluginSetting;
import org.opensearch.dataprepper.model.configuration.PluginSetting;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand All @@ -15,10 +15,10 @@

/**
* Annotates a Data Prepper plugin. This can be a pipeline component such
* as {@link com.amazon.dataprepper.model.source.Source},
* {@link com.amazon.dataprepper.model.buffer.Buffer},
* {@link com.amazon.dataprepper.model.processor.Processor}, or
* {@link com.amazon.dataprepper.model.sink.Sink}. It can also be another
* as {@link org.opensearch.dataprepper.model.source.Source},
* {@link org.opensearch.dataprepper.model.buffer.Buffer},
* {@link org.opensearch.dataprepper.model.processor.Processor}, or
* {@link org.opensearch.dataprepper.model.sink.Sink}. It can also be another
* plugin-supported class.
* <p>
* The value provided in the {@link #name()} attribute determines the name of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.annotations;
package org.opensearch.dataprepper.model.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.annotations;
package org.opensearch.dataprepper.model.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.buffer;
package org.opensearch.dataprepper.model.buffer;

import com.amazon.dataprepper.metrics.MetricNames;
import com.amazon.dataprepper.metrics.PluginMetrics;
import com.amazon.dataprepper.model.CheckpointState;
import com.amazon.dataprepper.model.configuration.PluginSetting;
import com.amazon.dataprepper.model.record.Record;
import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.Timer;
import org.opensearch.dataprepper.metrics.MetricNames;
import org.opensearch.dataprepper.metrics.PluginMetrics;
import org.opensearch.dataprepper.model.CheckpointState;
import org.opensearch.dataprepper.model.configuration.PluginSetting;
import org.opensearch.dataprepper.model.record.Record;

import java.util.Collection;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.buffer;
package org.opensearch.dataprepper.model.buffer;

import com.amazon.dataprepper.model.record.Record;
import com.amazon.dataprepper.model.CheckpointState;
import org.opensearch.dataprepper.model.record.Record;
import org.opensearch.dataprepper.model.CheckpointState;

import java.util.Collection;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.buffer;
package org.opensearch.dataprepper.model.buffer;

/**
* Thrown to indicate the size of the data to be written into the {@link Buffer} is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.configuration;
package org.opensearch.dataprepper.model.configuration;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.core.JacksonException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.configuration;
package org.opensearch.dataprepper.model.configuration;

/**
* Model that should be provided to plugins to provide certain details about the pipeline they belong to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.configuration;
package org.opensearch.dataprepper.model.configuration;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.configuration;
package org.opensearch.dataprepper.model.configuration;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.configuration;
package org.opensearch.dataprepper.model.configuration;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.configuration;
package org.opensearch.dataprepper.model.configuration;

import java.util.Collections;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.configuration;
package org.opensearch.dataprepper.model.configuration;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.event;
package org.opensearch.dataprepper.model.event;

import com.google.common.collect.ImmutableMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.event;
package org.opensearch.dataprepper.model.event;

import java.util.List;
import java.util.Map;
Expand All @@ -12,10 +12,10 @@
* All data flowing through Data Prepper will be represented as events. An event is the base representation of data.
* An event can be defined as a collection of key-value pairs and the following interface represents the contract with this model.
* <p>
* Data Prepper will be migrating away from the original use of {@link com.amazon.dataprepper.model.record.Record}s.
* Internal interfaces for {@link com.amazon.dataprepper.model.processor.Processor}, {@link com.amazon.dataprepper.model.buffer.Buffer},
* {@link com.amazon.dataprepper.model.sink.Sink} and {@link com.amazon.dataprepper.model.source.Source} will be extended to support
* the new internal model. The use of {@link com.amazon.dataprepper.model.record.Record}s will be deprecated in 2.0.
* Data Prepper will be migrating away from the original use of {@link org.opensearch.dataprepper.model.record.Record}s.
* Internal interfaces for {@link org.opensearch.dataprepper.model.processor.Processor}, {@link org.opensearch.dataprepper.model.buffer.Buffer},
* {@link org.opensearch.dataprepper.model.sink.Sink} and {@link org.opensearch.dataprepper.model.source.Source} will be extended to support
* the new internal model. The use of {@link org.opensearch.dataprepper.model.record.Record}s will be deprecated in 2.0.
* <p>
* @since 1.2
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.event;
package org.opensearch.dataprepper.model.event;

import java.time.Instant;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.event;
package org.opensearch.dataprepper.model.event;

import java.util.Arrays;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.event;
package org.opensearch.dataprepper.model.event;

import com.fasterxml.jackson.core.JsonPointer;
import com.fasterxml.jackson.core.JsonProcessingException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.log;
package org.opensearch.dataprepper.model.log;

import com.amazon.dataprepper.model.event.EventType;
import com.amazon.dataprepper.model.event.JacksonEvent;
import org.opensearch.dataprepper.model.event.EventType;
import org.opensearch.dataprepper.model.event.JacksonEvent;

import static com.google.common.base.Preconditions.checkArgument;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.log;
package org.opensearch.dataprepper.model.log;

import com.amazon.dataprepper.model.event.Event;
import org.opensearch.dataprepper.model.event.Event;

/**
* A log event in Data Prepper represents a single log line. A log event does not require any specific keys allowing this event type to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

/**
* Represents a bucket of a {@link Histogram}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

/**
* The default implementation of {@link Bucket}, measurement within a {@link Histogram}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

/**
* The default implementation of {@link Quantile}, measurement within a {@link Summary}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

/**
* A gauge event in Data Prepper represents a metric event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

import com.amazon.dataprepper.model.event.EventType;
import org.opensearch.dataprepper.model.event.EventType;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

import com.amazon.dataprepper.model.event.EventType;
import org.opensearch.dataprepper.model.event.EventType;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

import com.amazon.dataprepper.model.event.JacksonEvent;
import org.opensearch.dataprepper.model.event.JacksonEvent;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

import com.amazon.dataprepper.model.event.EventType;
import org.opensearch.dataprepper.model.event.EventType;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

import com.amazon.dataprepper.model.event.EventType;
import org.opensearch.dataprepper.model.event.EventType;

import java.util.Arrays;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

package com.amazon.dataprepper.model.metric;
package org.opensearch.dataprepper.model.metric;

import com.amazon.dataprepper.model.event.Event;
import org.opensearch.dataprepper.model.event.Event;

import java.util.Map;

Expand Down
Loading

0 comments on commit 59c48e2

Please sign in to comment.