Interface DocumentConsumer

All Superinterfaces:
BiConsumer<Fetcher,Doc>
All Known Implementing Classes:
FeaturedImageResolver
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 DocumentConsumer extends BiConsumer<Fetcher,Doc>
Optional custom processing of a document just before or just after document has been imported by the Importer module. Set via the crawler configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Fetcher fetcher, Doc doc)
    Processes a document.

    Methods inherited from interface java.util.function.BiConsumer

    andThen
  • Method Details

    • accept

      void accept(Fetcher fetcher, Doc doc)
      Processes a document.
      Specified by:
      accept in interface BiConsumer<Fetcher,Doc>
      Parameters:
      fetcher - document fetcher
      doc - crawl document