Class EventMap.Builder
- java.lang.Object
-
- org.apache.druid.java.util.emitter.core.EventMap.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventMapbuild()Builds and returns the EventMapEventMap.Builderput(String key, Object value)Adds key -> value pair to the mapEventMap.BuilderputAll(Map<? extends String,? extends Object> other)Adds all key -> value pairs from other mapEventMap.BuilderputNonNull(String key, Object value)Adds key -> value pair to the map only if value is not null
-
-
-
Method Detail
-
put
public EventMap.Builder put(String key, Object value)
Adds key -> value pair to the map
-
putNonNull
public EventMap.Builder putNonNull(String key, Object value)
Adds key -> value pair to the map only if value is not null
-
putAll
public EventMap.Builder putAll(Map<? extends String,? extends Object> other)
Adds all key -> value pairs from other map
-
build
public EventMap build()
Builds and returns the EventMap
-
-