DataTypeSamplingSchemeMap
A set of DataTypeSamplingSchemes mapped to their data type as String.
Returned by DeviceConfiguration.dataTypeSamplingSchemes to list what a device can collect.
Constructors
DataTypeSamplingSchemeMap.from
- List<
DataTypeSamplingScheme> schemes
Creates a DataTypeSamplingSchemeMap from the list of schemes.
DataTypeSamplingSchemeMap
Creates an empty DataTypeSamplingSchemeMap.
Properties
configurations
The map of all SamplingConfiguration entries in this scheme.
dataTypes
The list of data types as DataTypeMetaData supported by this sampling schema.
types
The set of data types as String supported by this sampling schema.
Methods
add
- DataTypeSamplingScheme scheme
Add scheme to this map of schemes.
addSamplingSchema
- DataTypeSamplingSchemeMap schema
Adds all sampling configurations from another schema to this schema. If a configuration in schema is already in this schema, its value is overwritten.
clear
Removes all data schemes from this map.
contains
Whether the schema contains the data type type.
remove
- String type
Removes type and its associated value, if present, from the map.
Returns the configuration associated with type before it was removed. Returns null if type was not in the map.
toMap
This sampling schema as a native Map. Changes to it change this map.
toString
A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.
Operators
operator []
- String? type
The configuration for the data type type, or null if type is not in the map.
operator []=
- String type,
- DataTypeSamplingScheme schema
Associates the type with the given schema.