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
Direct Known Subclasses:
HipoToHipoTagWriter

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 Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected final List<org.jlab.jnp.hipo4.data.Bank>
     

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

    writer
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    configure(org.jlab.jnp.hipo4.io.HipoWriterSorted writer, org.json.JSONObject opts)
     
    protected org.jlab.jnp.hipo4.io.HipoWriterSorted
    createWriter(Path file, org.json.JSONObject opts)
     
    protected org.jlab.clara.engine.EngineDataType
     
    protected void
     
    static void
    writeEvent(org.jlab.jnp.hipo4.io.HipoWriterSorted w, org.jlab.jnp.hipo4.data.Event e, List<org.jlab.jnp.hipo4.data.Bank> schema)
     

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

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

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

    getAuthor, getDescription, getName, getStates, getVersion

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • schemaBankList Link icon

      protected final List<org.jlab.jnp.hipo4.data.Bank> schemaBankList
    • filename Link icon

      protected String filename
  • Constructor Details Link icon

    • HipoToHipoWriter Link icon

      public HipoToHipoWriter()
  • Method Details Link icon

    • createWriter Link icon

      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
    • configure Link icon

      protected void configure(org.jlab.jnp.hipo4.io.HipoWriterSorted writer, org.json.JSONObject opts)
    • closeWriter Link icon

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

      public static void writeEvent(org.jlab.jnp.hipo4.io.HipoWriterSorted w, org.jlab.jnp.hipo4.data.Event e, List<org.jlab.jnp.hipo4.data.Bank> schema)
    • writeEvent Link icon

      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 Link icon

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