Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ObjectDatabaseContentIndexMap Class

    Namespace: Stride.Core.Storage
    Assembly: 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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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.


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation