Class 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 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 interface java.lang.AutoCloseable
        Throws:
        java.io.IOException