Class MetadataInstance
Contains all the information related to a single instance part of the dataset.
Inherited Members
Namespace: Unity.Cloud.DataStreaming.Metadata
Assembly: Unity.Cloud.DataStreaming.Runtime.dll
Syntax
public sealed class MetadataInstance
Properties
AncestorIds
Hierarchy of this instance represented in a list where the first element is the top level parent (root) of the instance and the last element is the direct parent.
Declaration
public IReadOnlyList<InstanceId> AncestorIds { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<InstanceId> |
Remarks
To get MetadataInstances for each ancestor part of this list, you can use WhereInstanceEquals(IEnumerable<InstanceId>). To get the siblings of this instance, you can filter a query using WhereHasAncestor(InstanceId) by giving the last item of the AncestorIds.
Geometry
Declaration
public Geometry? Geometry { get; }
Property Value
Type | Description |
---|---|
Geometry? |
HasChildren
Declaration
public bool HasChildren { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
To get its children, you can filter a query using WhereHasAncestor(InstanceId).
Id
Unique identifier associated with the instance allowing to retrieve specified instance data via WhereInstanceEquals(IEnumerable<InstanceId>).
Declaration
public InstanceId Id { get; }
Property Value
Type | Description |
---|---|
InstanceId |
Name
The name of the instance from the source file.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Properties
Dictionary of key value pairs where the value is a string stored in a IMetadataValue.
Declaration
public IReadOnlyDictionary<string, IMetadataValue> Properties { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<string, IMetadataValue> |