类 SchemaImpl

    • 方法详细资料

      • getName

        public String getName()
        从接口复制的说明: DatabaseObject
        Retrieve the name of the database object represented by the Java object.
        指定者:
        getName 在接口中 DatabaseObject
        返回:
        name
      • getCollections

        public List<Collection> getCollections​(String pattern)
        从接口复制的说明: Schema
        Retrieve the set of collections existing in this schema and matching the given pattern.
        指定者:
        getCollections 在接口中 Schema
        参数:
        pattern - match pattern
        返回:
        list of Collection objects
      • getTables

        public List<Table> getTables()
        从接口复制的说明: Schema
        Retrieve the set of tables existing in this schema.
        指定者:
        getTables 在接口中 Schema
        返回:
        list of Table objects
      • getTables

        public List<Table> getTables​(String pattern)
        从接口复制的说明: Schema
        Retrieve the set of tables existing in this schema and matching the given pattern.
        指定者:
        getTables 在接口中 Schema
        参数:
        pattern - match pattern
        返回:
        list of Table objects
      • getCollection

        public Collection getCollection​(String collectionName)
        从接口复制的说明: Schema
        Retrieve a reference to the named collection.
        指定者:
        getCollection 在接口中 Schema
        参数:
        collectionName - collection name
        返回:
        Collection
      • getCollection

        public Collection getCollection​(String collectionName,
                                        boolean requireExists)
        从接口复制的说明: Schema
        Retrieve a reference to the named collection hinting that an exception should be thrown if the collection is not known to the server.
        指定者:
        getCollection 在接口中 Schema
        参数:
        collectionName - collection name
        requireExists - true if required to exist
        返回:
        Collection
      • getCollectionAsTable

        public Table getCollectionAsTable​(String collectionName)
        从接口复制的说明: Schema
        Retrieve a reference to the named collection using the table API.
        指定者:
        getCollectionAsTable 在接口中 Schema
        参数:
        collectionName - collection name
        返回:
        Table
      • getTable

        public Table getTable​(String tableName)
        从接口复制的说明: Schema
        Retrieve a reference to the named table.
        指定者:
        getTable 在接口中 Schema
        参数:
        tableName - table name
        返回:
        Table
      • getTable

        public Table getTable​(String tableName,
                              boolean requireExists)
        从接口复制的说明: Schema
        Retrieve a reference to the named table hinting that an exception should be thrown if the collection is not known to the server.
        指定者:
        getTable 在接口中 Schema
        参数:
        tableName - table name
        requireExists - true if required to exist
        返回:
        Table
      • createCollection

        public Collection createCollection​(String collectionName,
                                           boolean reuseExisting)
        从接口复制的说明: Schema
        Create a new collection if it does not already exist on the server.
        指定者:
        createCollection 在接口中 Schema
        参数:
        collectionName - collection name
        reuseExisting - true if allowed to reuse
        返回:
        Collection
      • modifyCollection

        public void modifyCollection​(String collectionName,
                                     Schema.ModifyCollectionOptions options)
        从接口复制的说明: Schema
        Modify the schema validation of a collection.
        指定者:
        modifyCollection 在接口中 Schema
        参数:
        collectionName - collection name
        options - validation level and JSON schema options
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object
      • dropCollection

        public void dropCollection​(String collectionName)
        从接口复制的说明: Schema
        Drop the collection from this schema.
        指定者:
        dropCollection 在接口中 Schema
        参数:
        collectionName - name of collection to drop