private static TensorAddress createSparsePartAddress(TensorAddress address, TensorType type) {
        var builder = new TensorAddress.Builder(type.mappedSubtype());
        for (int i = 0; i < type.dimensions().size(); ++i) {
            var dim = type.dimensions().get(i);
            if (dim.isMapped()) {
                builder.add(dim.name(), address.numericLabel(i));
            }
        }
        return builder.build();
    }
Converts the given tensor type to a type that is compatible for being used in this update (has only mapped dimensions).
document/src/main/java/com/yahoo/document/update/TensorModifyUpdate.java