Class HipoToHipoWriter

java.lang.Object
org.jlab.clara.std.services.AbstractService
org.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
org.jlab.io.clara.HipoToHipoWriter
All Implemented Interfaces:
org.jlab.clara.engine.Engine

public class HipoToHipoWriter extends org.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
Service that converts HIPO transient data to HIPO persistent data (i.e. writes HIPO events to an output file).
  • Field Summary

    Fields inherited from class org.jlab.clara.std.services.AbstractEventWriterService

    writer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected org.jlab.jnp.hipo4.io.HipoWriterSorted
    createWriter(Path file, org.json.JSONObject opts)
     
    protected org.jlab.clara.engine.EngineDataType
     
    protected void
     

    Methods inherited from class org.jlab.clara.std.services.AbstractEventWriterService

    configure, destroy, execute, executeGroup, getInputDataTypes, getOutputDataTypes, reset

    Methods inherited from class org.jlab.clara.std.services.AbstractService

    getAuthor, getDescription, getName, getStates, getVersion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HipoToHipoWriter

      public HipoToHipoWriter()
  • Method Details

    • createWriter

      protected org.jlab.jnp.hipo4.io.HipoWriterSorted createWriter(Path file, org.json.JSONObject opts) throws org.jlab.clara.std.services.EventWriterException
      Specified by:
      createWriter in class org.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
      Throws:
      org.jlab.clara.std.services.EventWriterException
    • closeWriter

      protected void closeWriter()
      Specified by:
      closeWriter in class org.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
    • writeEvent

      protected void writeEvent(Object event) throws org.jlab.clara.std.services.EventWriterException
      Specified by:
      writeEvent in class org.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
      Throws:
      org.jlab.clara.std.services.EventWriterException
    • getDataType

      protected org.jlab.clara.engine.EngineDataType getDataType()
      Specified by:
      getDataType in class org.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>