Interface MongoDataSet<T>

Type Parameters:
T - Type of the elements to insert as documents.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MongoDataSet<T>
Set of documents used to initialize a collection with data.
  • Method Summary

    Modifier and Type
    Method
    Description
    Obtain the documents to insert.
    default String
     
  • Method Details

    • documents

      List<T> documents()
      Obtain the documents to insert.
      Returns:
      Documents to insert into the collection.
    • identifier

      default String identifier()