MongoDbCollectionInfo Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MongoDbCollectionInfo() |
Initializes a new instance of the MongoDbCollectionInfo class. |
MongoDbCollectionInfo(Int64, Int64, Int64, String, String, String, Boolean, Boolean, Boolean, Boolean, MongoDbShardKeyInfo, String) |
Initializes a new instance of the MongoDbCollectionInfo class. |
MongoDbCollectionInfo()
Initializes a new instance of the MongoDbCollectionInfo class.
public MongoDbCollectionInfo ();
Public Sub New ()
Applies to
MongoDbCollectionInfo(Int64, Int64, Int64, String, String, String, Boolean, Boolean, Boolean, Boolean, MongoDbShardKeyInfo, String)
Initializes a new instance of the MongoDbCollectionInfo class.
public MongoDbCollectionInfo (long averageDocumentSize, long dataSize, long documentCount, string name, string qualifiedName, string databaseName, bool isCapped, bool isSystemCollection, bool isView, bool supportsSharding, Microsoft.Azure.Management.DataMigration.Models.MongoDbShardKeyInfo shardKey = default, string viewOf = default);
new Microsoft.Azure.Management.DataMigration.Models.MongoDbCollectionInfo : int64 * int64 * int64 * string * string * string * bool * bool * bool * bool * Microsoft.Azure.Management.DataMigration.Models.MongoDbShardKeyInfo * string -> Microsoft.Azure.Management.DataMigration.Models.MongoDbCollectionInfo
Public Sub New (averageDocumentSize As Long, dataSize As Long, documentCount As Long, name As String, qualifiedName As String, databaseName As String, isCapped As Boolean, isSystemCollection As Boolean, isView As Boolean, supportsSharding As Boolean, Optional shardKey As MongoDbShardKeyInfo = Nothing, Optional viewOf As String = Nothing)
Parameters
- averageDocumentSize
- Int64
The average document size, or -1 if the average size is unknown
- dataSize
- Int64
The estimated total data size, in bytes, or -1 if the size is unknown.
- documentCount
- Int64
The estimated total number of documents, or -1 if the document count is unknown
- name
- String
The unqualified name of the database or collection
- qualifiedName
- String
The qualified name of the database or collection. For a collection, this is the database-qualified name.
- databaseName
- String
The name of the database containing the collection
- isCapped
- Boolean
Whether the collection is a capped collection (i.e. whether it has a fixed size and acts like a circular buffer)
- isSystemCollection
- Boolean
Whether the collection is system collection
- isView
- Boolean
Whether the collection is a view of another collection
- supportsSharding
- Boolean
Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if necessary.
- shardKey
- MongoDbShardKeyInfo
The shard key on the collection, or null if the collection is not sharded
- viewOf
- String
The name of the collection that this is a view of, if IsView is true