Class Feeder

  • Direct Known Subclasses:
    JsonFeeder, XMLFeeder

    public abstract class Feeder
    extends java.lang.Object
    Base class for unpacking document operation streams and pushing to feed access points.
    Author:
    Thomas Gundersen, steinar
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.yahoo.document.DocumentTypeManager docMan  
      protected java.util.List<java.lang.String> errors  
      protected java.io.InputStream stream  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Feeder​(com.yahoo.document.DocumentTypeManager docMan, VespaFeedSender sender, java.io.InputStream stream)  
    • Field Detail

      • stream

        protected final java.io.InputStream stream
      • docMan

        protected final com.yahoo.document.DocumentTypeManager docMan
      • errors

        protected java.util.List<java.lang.String> errors
    • Constructor Detail

      • Feeder

        protected Feeder​(com.yahoo.document.DocumentTypeManager docMan,
                         VespaFeedSender sender,
                         java.io.InputStream stream)
    • Method Detail

      • setAbortOnDocumentError

        public void setAbortOnDocumentError​(boolean doAbort)
      • setCreateIfNonExistent

        public void setCreateIfNonExistent​(boolean value)
      • createReader

        protected abstract com.yahoo.vespaxmlparser.FeedReader createReader()
                                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parse

        public java.util.List<java.lang.String> parse()