Interface DocumentSource.Remover

Enclosing interface:
DocumentSource
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 static interface DocumentSource.Remover
  • Method Details

    • remove

      Collection<Document> remove(Collection<Document> documents)
      Removes all documents in the collection. The returned collection is used to indicate successful removal. If no documents were removed, an empty collection is returned.
      Parameters:
      documents - The documents to remove. This parameter will always equal the collection sent to DocumentSource.getRemover(Collection).
      Returns:
      A collection of removed documents.