Interface Collection<T>

    • Method Detail

      • count

        long count​(Filter filter,
                   Integer limit)
        Counts the number of entities matching the provided filter
        Parameters:
        filter -
        limit - the maximum number of documents to count. Nullable.
        Returns:
        the number of entities matching the provided filter
      • estimatedCount

        long estimatedCount()
        Provide an estimation of the total number of entities of the collection
        Returns:
      • distinct

        List<String> distinct​(String columnName,
                              Filter filter)
        Parameters:
        columnName - the name of the column (field)
        filter - : the query filter
        Returns:
        the distinct values of the column
      • remove

        void remove​(Filter filter)
      • save

        T save​(T entity)
      • createOrUpdateIndex

        void createOrUpdateIndex​(String field)
      • createOrUpdateCompoundIndex

        void createOrUpdateCompoundIndex​(String... fields)
      • rename

        void rename​(String newName)
      • drop

        void drop()