private int encodeOperationId(TensorModifyUpdate update) {
        int operationId = update.getOperation().id;
        byte CREATE_FLAG = -0b10000000;
        if (update.getCreateNonExistingCells()) {
            operationId |= CREATE_FLAG;
        }
        return operationId;
    }
Class used for serializing documents on the current head document format.

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