Package com.yahoo.search.predicate.utils
Class VespaFeedParser
- java.lang.Object
-
- com.yahoo.search.predicate.utils.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 Summary
Constructors Constructor Description VespaFeedParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
parseDocuments(String feedFile, int maxDocuments, Consumer<com.yahoo.document.predicate.Predicate> consumer)
-
-
-
Method Detail
-
parseDocuments
public static int parseDocuments(String feedFile, int maxDocuments, Consumer<com.yahoo.document.predicate.Predicate> consumer) throws IOException
- Throws:
IOException
-
-