@@ -30,7 +30,7 @@ public final class CefProcessor extends AbstractProcessor {
3030 final String field ;
3131 final String targetField ;
3232 final boolean ignoreMissing ;
33- final boolean removeEmptyValue ;
33+ final boolean ignoreEmptyValues ;
3434 private final TemplateScript .Factory timezone ;
3535
3636 CefProcessor (
@@ -39,14 +39,14 @@ public final class CefProcessor extends AbstractProcessor {
3939 String field ,
4040 String targetField ,
4141 boolean ignoreMissing ,
42- boolean removeEmptyValue ,
42+ boolean ignoreEmptyValues ,
4343 @ Nullable TemplateScript .Factory timezone
4444 ) {
4545 super (tag , description );
4646 this .field = field ;
4747 this .targetField = targetField ;
4848 this .ignoreMissing = ignoreMissing ;
49- this .removeEmptyValue = removeEmptyValue ;
49+ this .ignoreEmptyValues = ignoreEmptyValues ;
5050 this .timezone = timezone ;
5151 }
5252
@@ -59,7 +59,7 @@ public IngestDocument execute(IngestDocument document) {
5959 throw new IllegalArgumentException ("field [" + field + "] is null, cannot process it." );
6060 }
6161 ZoneId timezone = getTimezone (document );
62- try (CefEvent event = new CefParser (timezone , removeEmptyValue ).process (line )) {
62+ try (CefEvent event = new CefParser (timezone , ignoreEmptyValues ).process (line )) {
6363 event .getRootMappings ().forEach (document ::setFieldValue );
6464 event .getCefMappings ().forEach ((k , v ) -> document .setFieldValue (targetField + "." + k , v ));
6565 }
@@ -97,7 +97,7 @@ public CefProcessor create(
9797 ProjectId projectId
9898 ) {
9999 String field = ConfigurationUtils .readStringProperty (TYPE , processorTag , config , "field" );
100- boolean removeEmptyValue = ConfigurationUtils .readBooleanProperty (TYPE , processorTag , config , "ignore_empty_value " , true );
100+ boolean ignoreEmptyValues = ConfigurationUtils .readBooleanProperty (TYPE , processorTag , config , "ignore_empty_values " , true );
101101 boolean ignoreMissing = ConfigurationUtils .readBooleanProperty (TYPE , processorTag , config , "ignore_missing" , false );
102102 String targetField = ConfigurationUtils .readStringProperty (TYPE , processorTag , config , "target_field" , "cef" );
103103 String timezoneString = ConfigurationUtils .readOptionalStringProperty (TYPE , processorTag , config , "timezone" );
@@ -118,7 +118,7 @@ public CefProcessor create(
118118 field ,
119119 targetField ,
120120 ignoreMissing ,
121- removeEmptyValue ,
121+ ignoreEmptyValues ,
122122 compiledTimezoneTemplate
123123 );
124124 }
0 commit comments