Class EventMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.apache.druid.java.util.emitter.core.EventMap
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class EventMap extends HashMap<String,Object>
EventMap is a hash map implementation. It can be safely serialzed to JSON using Jackson serializer as it respects the polymorphic annotations on entires (unlike standard Map). The example of polymorphic class is a query interface, where different native query types are resolved by additional field called "queryType". This implementation ensures that the annotation on the values are respected during serialization.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventMap.Builder-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description EventMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventMap.BuilderasBuilder()Convert this EventMap to a builder.static EventMap.Builderbuilder()Returns builder with Fluent API to build EventMap instance using method chaining-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
builder
public static EventMap.Builder builder()
Returns builder with Fluent API to build EventMap instance using method chaining
-
asBuilder
public EventMap.Builder asBuilder()
Convert this EventMap to a builder. Performs copy of the whole EventMap.
-
-