Class AlterCollectionParam.Builder

    • Method Detail

      • withCollectionName

        public AlterCollectionParam.Builder withCollectionName​(@NonNull
                                                               @NonNull java.lang.String collectionName)
        Set the collection name. Collection name cannot be empty or null.
        Parameters:
        collectionName - collection name
        Returns:
        Builder
      • withTTL

        public AlterCollectionParam.Builder withTTL​(@NonNull
                                                    @NonNull java.lang.Integer ttlSeconds)
        Collection time to live (TTL) is the expiration time of data in a collection. Expired data in the collection will be cleaned up and will not be involved in searches or queries. Specify TTL in the unit of seconds.
        Parameters:
        ttlSeconds - TTL seconds, value should be 0 or greater
        Returns:
        Builder