Class SortedLevelJsonLineWriter
java.lang.Object
fr.gouv.vitam.worker.core.plugin.transfer.reply.utils.SortedLevelJsonLineWriter
- All Implemented Interfaces:
AutoCloseable
Helper for writing mixed level (distribution group) of json line entries into a single json line sorted by distribution group
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntry
(JsonLineModel line) void
close()
void
exportToWorkspace
(String filename, boolean ascending)
-
Constructor Details
-
SortedLevelJsonLineWriter
-
-
Method Details
-
addEntry
- Throws:
IOException
-
exportToWorkspace
public void exportToWorkspace(String filename, boolean ascending) throws IOException, ProcessingException - Throws:
IOException
ProcessingException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-