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.AutoCloseableHelper 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 voidaddEntry(JsonLineModel line)voidclose()voidexportToWorkspace(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.IOExceptionProcessingException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-