Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5655

Introduce pluggable string encoder/decoder

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: 2.5
    • Component/s: binary
    • Labels:

      Description

      Currently binary marshaller encodes strings in UTF-8. However, sometimes it makes sense to serialize strings with different encodings to save space. Let's add global property to control String encoding and customize our binary protocol to support it. For instance, we can add another flag ENCODED_STRING, which will write strings as follows:
      [flag][encoding_flag][str_len][str_bytes]

      First implementation should set preferred encoding for strings in BinaryConfiguration. This setting is optional, default encoding is UTF-8. Currently, the same BinaryConfiguration is used for all cluster nodes, thus no encoding clashes are possible.

        Attachments

          Activity

            People

            • Assignee:
              andrey-kuznetsov Andrey Kuznetsov
              Reporter:
              vkulichenko Valentin Kulichenko
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: