Class VespaFeedParser


  • public class VespaFeedParser
    extends Object
    Parses a feed file containing documents in XML format. Its implementation is based on the following assumptions: 1. Each document has single predicate field. 2. The predicate is stored in a field named "boolean".
    Author:
    bjorncs
    • Constructor Detail

      • VespaFeedParser

        public VespaFeedParser()
    • Method Detail

      • parseDocuments

        public static int parseDocuments​(String feedFile,
                                         int maxDocuments,
                                         Consumer<com.yahoo.document.predicate.Predicate> consumer)
                                  throws IOException
        Throws:
        IOException