◆ DataBase() [1/2]
fiftyone.pipeline.core.data.DataBase.DataBase | ( | Logger | logger | ) |
Construct a new instance with the default case insensitive Map as the underlying storage.
- Parameters
-
- logger - used for logging
\r\n
This implementation of Data stores data values as key/value pairs in a Map where the key is a string and the value can be any type.
DataBase (Logger logger) | |
DataBase (Logger logger, Map< String, Object > data) | |
Object | get (String key)
Get the value stored using the specified key. More...
|
void | put (String key, Object value)
Set the value stored using the specified key. More...
|
Map< String, Object > | asKeyMap () |
void | populateFromMap (Map< String, Object > values)
Use the values in the specified map to populate this data instance. More...
|
fiftyone.pipeline.core.data.DataBase.DataBase | ( | Logger | logger | ) |
Construct a new instance with the default case insensitive Map as the underlying storage.
Map<String, Object> fiftyone.pipeline.core.data.DataBase.asKeyMap | ( | ) |
Get the data contained in this instance as a read only Map.
Implements fiftyone.pipeline.core.data.Data.
Object fiftyone.pipeline.core.data.DataBase.get | ( | String | key | ) |
Get the value stored using the specified key.
Implements fiftyone.pipeline.core.data.Data.
void fiftyone.pipeline.core.data.DataBase.populateFromMap | ( | Map< String, Object > | values | ) |
Use the values in the specified map to populate this data instance.
The data will not be cleared before the new values are added. The new values will overwrite old values if any exist with the same keys.
Implements fiftyone.pipeline.core.data.Data.
void fiftyone.pipeline.core.data.DataBase.put | ( | String | key, |
Object | value | ||
) |
Set the value stored using the specified key.
Implements fiftyone.pipeline.core.data.Data.