Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-831

Do Not Copy String When Flushing Dictionary

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.0
    • 1.8.0
    • Java
    • None

    Description

              if (useDictionaryEncoding) {
                rowOutput.write(dumpOrder[rows.get(i)]);
              } else {
                dictionary.getText(text, rows.get(i));
                directStreamOutput.write(text.getBytes(), 0, text.getLength());
                lengthOutput.write(text.getLength());
              }
      

      The code to flush first loads (copies) the data into a Text object and then writes it to the direct stream. Instead, pass the directStream to the dictionary and have it write directly to the stream instead of an intermediate Text object.

      Attachments

        Issue Links

          Activity

            People

              belugabehr David Mollitor
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: