Class VespaFeedParser


  • public class VespaFeedParser
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      VespaFeedParser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int parseDocuments​(java.lang.String feedFile, int maxDocuments, java.util.function.Consumer<com.yahoo.document.predicate.Predicate> consumer)  
      • Methods inherited from class java.lang.Object

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

      • VespaFeedParser

        public VespaFeedParser()
    • Method Detail

      • parseDocuments

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