@Override protected void writeEncodedValue(final Symbol val) { final int length = val.length(); final EncoderImpl encoder = getEncoder(); for (int i = 0; i < length; i++) { encoder.writeRaw((byte) val.charAt(i)); } }
@Override protected int getEncodedValueSize(final Symbol val) { return val.length(); }
public SymbolEncoding getEncoding(final Symbol val) { return val.length() <= 255 ? _shortSymbolEncoding : _symbolEncoding; }