here.content.hmc2.metadata module#
Bindings for the HMC Metadata.
- class here.content.hmc2.metadata.Category(identifier: Identifier, name: DecodedMessage, description: DecodedMessage | None, category_system: Identifier)[source]#
Bases:
objectA category that belongs to a category system.
- category_system: Identifier#
- description: DecodedMessage | None#
- identifier: Identifier#
- indexer = ContentIndexer(partition=None, identifier='identifier', refs={})#
- name: DecodedMessage#
- class here.content.hmc2.metadata.CategorySystem(identifier: Identifier, name: DecodedMessage, description: DecodedMessage | None)[source]#
Bases:
objectA category system.
- description: DecodedMessage | None#
- identifier: Identifier#
- indexer = ContentIndexer(partition=None, identifier='identifier', refs={})#
- name: DecodedMessage#
- class here.content.hmc2.metadata.Metadata(content: Content, layer_id: str, adapter: Adapter | None = None, layer_type: LayerType | None = None)[source]#
Bases:
SingleLayerBindingBindings for the HMC Metadata.
- classmethod object_types() Mapping[str, type][source]#
- Returns:
the types of attributes supported by this binding
- classmethod parse_and_index(partition_id: str, msg: Message) ContentPartition[source]#
Parse and index decoded message.
- Parameters:
partition_id – identifier of the partition
msg – decoded content from the layer, in the form of a Protobuf message
- Returns:
the content of a partition parsed and indexed in its own data structure