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:
DecoderWriter
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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final List<org.jlab.jnp.hipo4.data.Bank> Fields inherited from class org.jlab.clara.std.services.AbstractEventWriterService
writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidconfigure(org.jlab.jnp.hipo4.io.HipoWriterSorted writer, org.json.JSONObject opts) protected org.jlab.jnp.hipo4.io.HipoWriterSortedcreateWriter(Path file, org.json.JSONObject opts) protected org.jlab.clara.engine.EngineDataTypeprotected voidwriteEvent(Object event) static voidwriteEvent(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
configure, destroy, execute, executeGroup, getInputDataTypes, getOutputDataTypes, resetMethods inherited from class org.jlab.clara.std.services.AbstractService
getAuthor, getDescription, getName, getStates, getVersion
-
Field Details
-
schemaBankList
-
filename
-
-
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:
createWriterin classorg.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>- Throws:
org.jlab.clara.std.services.EventWriterException
-
configure
protected void configure(org.jlab.jnp.hipo4.io.HipoWriterSorted writer, org.json.JSONObject opts) -
closeWriter
protected void closeWriter()- Specified by:
closeWriterin classorg.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
-
writeEvent
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
- Specified by:
writeEventin classorg.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:
getDataTypein classorg.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
-