Class MongoDbCollectionInfoResponse


  • public final class MongoDbCollectionInfoResponse
    extends java.lang.Object
    • Method Detail

      • averageDocumentSize

        public java.lang.Double averageDocumentSize()
        Returns:
        The average document size, or -1 if the average size is unknown
      • dataSize

        public java.lang.Double dataSize()
        Returns:
        The estimated total data size, in bytes, or -1 if the size is unknown.
      • databaseName

        public java.lang.String databaseName()
        Returns:
        The name of the database containing the collection
      • documentCount

        public java.lang.Double documentCount()
        Returns:
        The estimated total number of documents, or -1 if the document count is unknown
      • isCapped

        public java.lang.Boolean isCapped()
        Returns:
        Whether the collection is a capped collection (i.e. whether it has a fixed size and acts like a circular buffer)
      • isSystemCollection

        public java.lang.Boolean isSystemCollection()
        Returns:
        Whether the collection is system collection
      • isView

        public java.lang.Boolean isView()
        Returns:
        Whether the collection is a view of another collection
      • name

        public java.lang.String name()
        Returns:
        The unqualified name of the database or collection
      • qualifiedName

        public java.lang.String qualifiedName()
        Returns:
        The qualified name of the database or collection. For a collection, this is the database-qualified name.
      • shardKey

        public java.util.Optional<MongoDbShardKeyInfoResponse> shardKey()
        Returns:
        The shard key on the collection, or null if the collection is not sharded
      • supportsSharding

        public java.lang.Boolean supportsSharding()
        Returns:
        Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if necessary.
      • viewOf

        public java.util.Optional<java.lang.String> viewOf()
        Returns:
        The name of the collection that this is a view of, if IsView is true