Class AbstractStreamingParser

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AbstractStreamingParser.Par
      Parameterization class.
      • Nested classes/interfaces inherited from interface elki.datasource.bundle.BundleStreamSource

        elki.datasource.bundle.BundleStreamSource.Event
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected elki.utilities.io.TokenizedReader reader
      Tokenized reader.
      protected elki.utilities.io.Tokenizer tokenizer
      Tokenizer.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      elki.datasource.bundle.MultipleObjectsBundle asMultipleObjectsBundle()  
      boolean assignDBID​(elki.database.ids.DBIDVar var)  
      void cleanup()
      Perform cleanup operations after parsing.
      protected abstract elki.logging.Logging getLogger()
      Get the logger for this class.
      boolean hasDBIDs()  
      void initStream​(java.io.InputStream in)
      Init the streaming parser for the given input stream.
      elki.datasource.bundle.MultipleObjectsBundle parse​(java.io.InputStream in)
      Returns a list of the objects parsed from the specified input stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface elki.datasource.bundle.BundleStreamSource

        data, getMeta, nextEvent
    • Field Detail

      • reader

        protected elki.utilities.io.TokenizedReader reader
        Tokenized reader.
      • tokenizer

        protected elki.utilities.io.Tokenizer tokenizer
        Tokenizer.
    • Constructor Detail

      • AbstractStreamingParser

        public AbstractStreamingParser​(CSVReaderFormat format)
        Constructor.
        Parameters:
        format - Reader format
    • Method Detail

      • parse

        public final elki.datasource.bundle.MultipleObjectsBundle parse​(java.io.InputStream in)
        Description copied from interface: Parser
        Returns a list of the objects parsed from the specified input stream.
        Specified by:
        parse in interface Parser
        Parameters:
        in - the stream to parse objects from
        Returns:
        a list containing those objects parsed from the input stream
      • initStream

        public void initStream​(java.io.InputStream in)
        Description copied from interface: StreamingParser
        Init the streaming parser for the given input stream.
        Specified by:
        initStream in interface StreamingParser
        Parameters:
        in - the stream to parse objects from
      • hasDBIDs

        public boolean hasDBIDs()
        Specified by:
        hasDBIDs in interface elki.datasource.bundle.BundleStreamSource
      • assignDBID

        public boolean assignDBID​(elki.database.ids.DBIDVar var)
        Specified by:
        assignDBID in interface elki.datasource.bundle.BundleStreamSource
      • asMultipleObjectsBundle

        public elki.datasource.bundle.MultipleObjectsBundle asMultipleObjectsBundle()
        Specified by:
        asMultipleObjectsBundle in interface elki.datasource.bundle.BundleStreamSource
      • cleanup

        public void cleanup()
        Description copied from interface: Parser
        Perform cleanup operations after parsing.
        Specified by:
        cleanup in interface Parser
      • getLogger

        protected abstract elki.logging.Logging getLogger()
        Get the logger for this class.
        Returns:
        Logger.