@Override
    public void write(FieldBase field, TensorFieldValue value) {
        var encodedTensor = value.getSerializedTensor();
        if (encodedTensor.isPresent()) {
            buf.putInt1_4Bytes(encodedTensor.get().length);
            buf.put(encodedTensor.get());
        } else {
            buf.putInt1_4Bytes(0);
        }
    }
Write out the value of string field

@param field - field description (name and data type)
@param value - field value
document/src/main/java/com/yahoo/document/serialization/VespaDocumentSerializer6.java