26.52. Class PartitionDataModelMapping
Namespace: ArmoniK.Core.Adapters.MongoDB.Table.DataModel
Assembly: ArmoniK.Core.Adapters.MongoDB.dll
Implementation of
public class PartitionDataModelMapping : IMongoDataModelMapping<PartitionData>
26.52.1. Inheritance
26.52.2. Implements
26.52.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
26.52.4. Properties
26.52.4.1. CollectionName
Gets the name of the MongoDB collection associated with the data model.
public string CollectionName { get; }
26.52.4.1.1. Property Value
26.52.5. Methods
26.52.5.1. InitializeCollectionAsync(IClientSessionHandle, IMongoCollection<PartitionData>, InitDatabase)
Insert data into the collection after its creation. Can be called multiple times
public Task InitializeCollectionAsync(IClientSessionHandle sessionHandle, IMongoCollection<PartitionData> collection, InitDatabase initDatabase)
26.52.5.1.1. Parameters
sessionHandle IClientSessionHandle
MongoDB Client session
collection IMongoCollection<PartitionData>
MongoDDB Collection in which to insert data
initDatabase InitDatabase
Data to insert
26.52.5.1.2. Returns
Task representing the asynchronous execution of the method
26.52.5.2. InitializeIndexes(MongoDB)
Setup indexes for the collection Can be called multiple times
public ICollection<CreateIndexModel<PartitionData>> InitializeIndexes(MongoDB options)
26.52.5.2.1. Parameters
options MongoDB
Options for MongoDB
26.52.5.2.2. Returns
ICollection<CreateIndexModel<PartitionData>>
Task representing the asynchronous execution of the method