Class AlterIndexParam.Builder

    • Method Detail

      • withCollectionName

        public AlterIndexParam.Builder withCollectionName​(String collectionName)
        Set the collection name. Collection name cannot be empty or null.
        Parameters:
        collectionName - collection name
        Returns:
        Builder
      • withDatabaseName

        public AlterIndexParam.Builder withDatabaseName​(String databaseName)
        Sets the database name. database name can be nil.
        Parameters:
        databaseName - database name
        Returns:
        Builder
      • withIndexName

        public AlterIndexParam.Builder withIndexName​(String indexName)
        Set the index name. Index name cannot be empty or null.
        Parameters:
        indexName - index name
        Returns:
        Builder
      • withMMapEnabled

        public AlterIndexParam.Builder withMMapEnabled​(boolean enabledMMap)
        Enable MMap or not for index data files.
        Parameters:
        enabledMMap - enabled or not
        Returns:
        Builder
      • withProperty

        public AlterIndexParam.Builder withProperty​(String key,
                                                    String value)
        Basic method to set a key-value property.
        Parameters:
        key - the key
        value - the value
        Returns:
        Builder