Skip to content

Commit

Permalink
#154 renamed enrichUnset to enrichEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
baubakg committed Aug 6, 2024
1 parent e0c2f12 commit 7d3e806
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ We have the capability to enrich log data with additional information. This is d

Enrichment can be done multiple times in order to add multiple values for the enrichment.

We have also introduced a method called `LogData#enrichUnset(String, Strinf)`, which sets a value for the entries which have not yet have a value set for them.
We have also introduced a method called `LogData#enrichEmpty(String, String)`, which sets a value for the entries which have not yet have a value set for them.

### GroupBy Mechanisms
We have introduced the groupBy mechanism. This functionality allows you to organize your results with more detail. Given a log data object, and an array of ParseDefinitionEntry names, we generate a new LogData Object containing groups made by the passed ParseDeinitionEnries and and number of entries for each group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ public void enrichData(Map<String, Matcher> in_queryMap, String in_entryName, St
* @param in_entryName The name of the entry to be added
* @param in_entryValue The value of the entry to be added
*/
public void enrichUnset(String in_entryName, String in_entryValue) {
public void enrichEmpty(String in_entryName, String in_entryValue) {
Map<String, Matcher> l_unsetSearchQuery = new HashMap<>();
l_unsetSearchQuery.put(in_entryName, Matchers.equalTo(""));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void testDoubleEnrichment_updateUnset() {
Map<String, Matcher> l_queryMap2 = new HashMap<>();
l_queryMap2.put("TIT", Matchers.equalTo(""));

l_cubeData.enrichUnset("TIT", "TUT");
l_cubeData.enrichEmpty("TIT", "TUT");

assertThat(l_cubeData.get("12").fetchStoredHeaders(), Matchers.containsInAnyOrder("key","AAZ", "ZZZ", "BAU", "DAT", "frequence", "TIT"));
assertThat(l_cubeData.get("12").get("TIT"), Matchers.equalTo("TAT"));
Expand Down

0 comments on commit 7d3e806

Please sign in to comment.