Simple Mapped Data
Subclass of Mapped Data that only allows simple data values for its keys. Notably, this data object does not support Collections, so this data type is not suitable for nested collections of data such as those found in JSON. The supported types for values in the Map are:
- String
- Integer/int
- Long/long
- Float/float
- Double/double
- Character/char
- Short/short
- Byte/byte
- UUID
- ByteBuffer
- byte[]
Class name: com.datashyft.pipeline.dataobjects.SimpleMappedData
SimpleMappedData(Map<String, Object> data) — Creates a new Simple Mapped Data object and populates its internal map with the provided data. The data in the map is not copied, so modifications to that data will modify the objects inside the Mapped Data object. If the map contains any unsupported values, an InvalidArgumentException is thrown.
SimpleMappedData(Map<String, List<String> tags, Map<String, Object> data) — Creates a new Simple Mapped Data object, populates its internal map with the provided data, and assigns it the specified tags. The data in the map is not copied, so modifications to that data will modify the objects inside the Mapped Data object. If the map contains any unsupported values, an InvalidArgumentException is thrown.
SimpleMappedData(Map<String, List<String> tags, String type, Map<String, Object> data) — Creates a new Simple Mapped Data object, populates its internal map with the provided data, assigns it the specified tags, and sets its type. The data in the map is not copied, so modifications to that data will modify the objects inside the Mapped Data object. If the map contains any unsupported values, an InvalidArgumentException is thrown.
getMappedData() — Returns a Map containing the data stored in this data object.