Skip to content

Commit

Permalink
reducing coupling with jackson on our model interface
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Manning <[email protected]>
  • Loading branch information
cmanning09 authored and laneholloway committed Oct 13, 2021
1 parent 35df391 commit c118f94
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.amazon.dataprepper.model.event;

import com.fasterxml.jackson.databind.JsonNode;

/**
* 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.
Expand Down Expand Up @@ -42,11 +40,11 @@ public interface Event {
void delete(String key);

/**
* Generates a Json representation of the entire Event
* @return JsonNode of the event
* Generates a serialized Json string of the entire Event
* @return Json string of the event
* @since 1.2
*/
JsonNode toJsonNode();
String toJsonNode();

/**
* Retrieves the EventMetadata
Expand Down

0 comments on commit c118f94

Please sign in to comment.