static TensorRemoveUpdate createTensorRemoveUpdate(TokenBuffer buffer, Field field) {
        expectObjectStart(buffer.current());
        expectTensorTypeHasSparseDimensions(field);

        TensorDataType tensorDataType = (TensorDataType)field.getDataType();
        TensorType originalType = tensorDataType.getTensorType();
        TensorType sparseType = TensorRemoveUpdate.extractSparseDimensions(originalType);
        Tensor tensor = readRemoveUpdateTensor(buffer, sparseType, originalType);

        expectAddressesAreNonEmpty(field, tensor);
        return new TensorRemoveUpdate(new TensorFieldValue(tensor));
    }
Reader of a "remove" update of a tensor field.
document/src/main/java/com/yahoo/document/json/readers/TensorRemoveUpdateReader.java