◆ 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
◆ DataBase() [2/2]
fiftyone.pipeline.core.data.DataBase.DataBase ( Logger logger, Map< String, Object > data ) Construct a new instance with a custom implementation of Map as the underlying storage.
- Parameters
-
- logger - used for logging
- data - the Map to use as the underlying storage
Member Function Documentation
◆ asKeyMap()
Map<String, Object> fiftyone.pipeline.core.data.DataBase.asKeyMap ( ) Get the data contained in this instance as a read only Map.
- Returns
- the data
Implements fiftyone.pipeline.core.data.Data.
◆ get()
Object fiftyone.pipeline.core.data.DataBase.get ( String key ) Get the value stored using the specified key.
- Parameters
-
- key - name of the property
- Returns
- value or null
Implements fiftyone.pipeline.core.data.Data.
◆ populateFromMap()
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.
- Parameters
-
- values - the values to transfer to this data instance
Implements fiftyone.pipeline.core.data.Data.
◆ put()
void fiftyone.pipeline.core.data.DataBase.put ( String key, Object value ) Set the value stored using the specified key.
- Parameters
-
- key - name of the property
- value - value for the property
Implements fiftyone.pipeline.core.data.Data.