示例#1
0
    @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));
      }
    }
示例#2
0
 @Override
 protected int getEncodedValueSize(final Symbol val) {
   return val.length();
 }
示例#3
0
 public SymbolEncoding getEncoding(final Symbol val) {
   return val.length() <= 255 ? _shortSymbolEncoding : _symbolEncoding;
 }