@Override
    public void write(TensorModifyUpdate update) {
        putByte(null, (byte) encodeOperationId(update));
        if (update.getCreateNonExistingCells()) {
            putDouble(null, update.getDefaultCellValue());
        }
        update.getValue().serialize(this);
    }
Class used for serializing documents on the current head document format.

@author baldersheim
document/src/main/java/com/yahoo/document/serialization/VespaDocumentSerializerHead.java