Class DataMapper.BaseMappingConsumer<B extends DataMapper.BaseDataUnit>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int period  
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseMappingConsumer​(java.lang.Class<B> cls, int period)
      Creates a timed mapping consumer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(B value)  
      protected void infoGotData​(B value)
      Informs that data is available for testing and data ingestion may start.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Field Detail

      • period

        private int period
    • Constructor Detail

      • BaseMappingConsumer

        public BaseMappingConsumer​(java.lang.Class<B> cls,
                                   int period)
        Creates a timed mapping consumer.
        Parameters:
        cls - the type used for data input
        period - the initial time period between two tuples, usually 0
    • Method Detail

      • infoGotData

        protected void infoGotData​(B value)
        Informs that data is available for testing and data ingestion may start. Default is output on System.out. May be overridden.
        Parameters:
        value - the data value