@Override public final void addBinary(Binary value) { try { ProtobufDatumFactory factory = ProtobufDatumFactory.get(dataType.getCode()); Message.Builder builder = factory.newBuilder(); builder.mergeFrom(value.getBytes()); parent.add(factory.createDatum(builder)); } catch (InvalidProtocolBufferException e) { throw new RuntimeException(e); } }
@Override public void addBinary(Binary value) { nulls[fieldIndex] = false; slices[fieldIndex] = Slices.wrappedBuffer(value.getBytes()); }
@Override public void addBinary(Binary value) { VARBINARY.writeSlice(builder, Slices.wrappedBuffer(value.getBytes())); wroteValue = true; }
@Override public final void addBinary(Binary value) { parent.add(new BlobDatum(ByteBuffer.wrap(value.getBytes()))); }
@Override public final void addBinary(Binary value) { parent.add(DatumFactory.createText(value.getBytes())); }