Class SortedLevelJsonLineWriter
- java.lang.Object
-
- fr.gouv.vitam.worker.core.plugin.transfer.reply.utils.SortedLevelJsonLineWriter
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class SortedLevelJsonLineWriter extends java.lang.Object implements java.lang.AutoCloseable
Helper for writing mixed level (distribution group) of json line entries into a single json line sorted by distribution group
-
-
Constructor Summary
Constructors Constructor Description SortedLevelJsonLineWriter(HandlerIO handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntry(JsonLineModel line)
void
close()
void
exportToWorkspace(java.lang.String filename, boolean ascending)
-
-
-
Constructor Detail
-
SortedLevelJsonLineWriter
public SortedLevelJsonLineWriter(HandlerIO handler)
-
-
Method Detail
-
addEntry
public void addEntry(JsonLineModel line) throws java.io.IOException
- Throws:
java.io.IOException
-
exportToWorkspace
public void exportToWorkspace(java.lang.String filename, boolean ascending) throws java.io.IOException, ProcessingException
- Throws:
java.io.IOException
ProcessingException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
-
-