Class FileSystemDocumentLoaderExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static List<Document> loadDocuments(List<Path> directoryPaths, DocumentParser documentParser, Boolean recursive, PathMatcher pathMatcher, CoroutineContext context) Asynchronously loads documents from the specified directories.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • loadDocuments

         final static List<Document> loadDocuments(List<Path> directoryPaths, DocumentParser documentParser, Boolean recursive, PathMatcher pathMatcher, CoroutineContext context)

        Asynchronously loads documents from the specified directories.

        Parameters:
        directoryPaths - A list of directories from which documents should be loaded.
        documentParser - The parser to convert files into Document objects.
        recursive - Determines whether subdirectories should also be searched for documents.
        pathMatcher - An optional filter to match file paths against specific patterns.
        context - The CoroutineContext to be used for asynchronous operations.
        Returns:

        A list of Document objects representing the loaded documents.