ObjectDatabaseContentIndexMap Class
Namespace: Stride.Core.StorageAssembly: Stride.Core.Serialization.dll
Content Index Map implementation which regroups all the asset index maps of every loaded file backend and asset bundle backends.
System.Object →
ObjectDatabaseContentIndexMap
Derived from ObjectDatabaseContentIndexMap:
public class ObjectDatabaseContentIndexMap : IContentIndexMap, IDisposable
Name | Description | |
---|---|---|
Properties | ||
Item[String] | ||
WriteableContentIndexMap | ||
Methods | ||
Contains(String) | ||
Dispose() | ||
GetMergedIdMap() | ||
Merge(IContentIndexMap) | Merges the values from the given asset index map. |
|
Merge(IEnumerable<KeyValuePair<String, ObjectId>>) | Merges the values from the given assets. |
|
SearchValues(Func<KeyValuePair<String, ObjectId>, Boolean>) | ||
TryGetValue(String, out ObjectId) | ||
Unmerge(IEnumerable<KeyValuePair<String, ObjectId>>) | Unmerges the values from the given assets. |
Properties
Item[String]
public ObjectId this[string url] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | url |
Property Value
Type | Description |
---|---|
ObjectId |
WriteableContentIndexMap
public IContentIndexMap WriteableContentIndexMap { get; set; }
Property Value
Type | Description |
---|---|
IContentIndexMap |
Methods
Contains(String)
public bool Contains(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url |
Returns
Type | Description |
---|---|
System.Boolean |
Dispose()
public void Dispose()
GetMergedIdMap()
public IEnumerable<KeyValuePair<string, ObjectId>> GetMergedIdMap()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, ObjectId>> |
Merge(IContentIndexMap)
Merges the values from the given asset index map.
public void Merge(IContentIndexMap contentIndexMap)
Parameters
Type | Name | Description |
---|---|---|
IContentIndexMap | contentIndexMap | The asset index map to merge. |
Merge(IEnumerable<KeyValuePair<String, ObjectId>>)
Merges the values from the given assets.
public void Merge(IEnumerable<KeyValuePair<string, ObjectId>> assets)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, ObjectId>> | assets | The assets to merge. |
SearchValues(Func<KeyValuePair<String, ObjectId>, Boolean>)
public IEnumerable<KeyValuePair<string, ObjectId>> SearchValues(Func<KeyValuePair<string, ObjectId>, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Collections.Generic.KeyValuePair<System.String, ObjectId>, System.Boolean> | predicate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, ObjectId>> |
TryGetValue(String, out ObjectId)
public bool TryGetValue(string url, out ObjectId objectId)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | |
ObjectId | objectId |
Returns
Type | Description |
---|---|
System.Boolean |
Unmerge(IEnumerable<KeyValuePair<String, ObjectId>>)
Unmerges the values from the given assets.
public void Unmerge(IEnumerable<KeyValuePair<string, ObjectId>> assets)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, ObjectId>> | assets | The assets to merge. |