Module jonix

Class UnifiedRecord<P extends UnifiedProduct>

java.lang.Object
com.tectonica.jonix.unify.UnifiedRecord<P>
Direct Known Subclasses:
BaseRecord

public class UnifiedRecord<P extends UnifiedProduct> extends Object
  • Field Details

  • Constructor Details

    • UnifiedRecord

      public UnifiedRecord(JonixRecord rawRecord, P product)
  • Method Details

    • breakCurrentSource

      public void breakCurrentSource()
      call this method to stop streaming products from the current source, and move on to the next one (if listed)
    • breakStream

      public void breakStream()
      call this method to stop streaming products from current as well as the next sources (if listed)
    • store

      public <T> UnifiedRecord<P> store(String key, T value)
      Stores an object for later use during the streaming process. The stored object can be retrieved with retrieve(String).
    • retrieve

      public <T> T retrieve(String key)
      Returns:
      an object stored with store(String, Object) during the streaming, or null if the key doesn't exist
    • retrieve

      public <T> T retrieve(String key, T defaultValue)
      Returns:
      an object stored with store(String, Object) during the streaming, or defaultValue if the key doesn't exist
    • toString

      public String toString()
      Overrides:
      toString in class Object