? persistentProperty.getTypeInformation().getRequiredMapValueType() : persistentProperty.getTypeInformation().getActualType();
? targetProperty.getTypeInformation().getRequiredMapValueType() : ClassTypeInformation.OBJECT) : targetProperty.getTypeInformation().getActualType());
/** * Creates projections of the given {@link Map}'s values if necessary and returns an new {@link Map} with the handled * values. * * @param sources must not be {@literal null}. * @param type must not be {@literal null}. * @return */ private Map<Object, Object> projectMapValues(Map<?, ?> sources, TypeInformation<?> type) { Map<Object, Object> result = CollectionFactory.createMap(type.getType(), sources.size()); for (Entry<?, ?> source : sources.entrySet()) { result.put(source.getKey(), getProjection(source.getValue(), type.getRequiredMapValueType().getType())); } return result; }
private Object writeMapInternal(Map<Object, Object> source, TypeInformation<?> type) { Map<Object, Object> converted = CollectionFactory.createMap(type.getType(), source.size()); TypeInformation<?> keyType = type.getRequiredComponentType(); TypeInformation<?> valueType = type.getRequiredMapValueType(); for (Entry<Object, Object> entry : source.entrySet()) { converted.put(convertToColumnType(entry.getKey(), keyType), convertToColumnType(entry.getValue(), valueType)); } return converted; }
WildcardPosition wildcardPosition) { TypeInformation<?> mapTypeInformation = property.getTypeInformation().getRequiredMapValueType(); Class<?> rawMapType = mapTypeInformation.getType();
? persistentProperty.getTypeInformation().getRequiredMapValueType() : persistentProperty.getTypeInformation().getActualType();
? persistentProperty.getTypeInformation().getRequiredMapValueType() : persistentProperty.getTypeInformation().getActualType();
private Collection<SolrInputField> writeWildcardMapPropertyToTarget(SolrDocumentBase target, SolrPersistentProperty persistentProperty, Map<?, ?> fieldValue) { TypeInformation<?> mapTypeInformation = persistentProperty.getTypeInformation().getRequiredMapValueType(); Class<?> rawMapType = mapTypeInformation.getType(); String fieldName = persistentProperty.getFieldName();
? targetProperty.getTypeInformation().getRequiredMapValueType() : ClassTypeInformation.OBJECT) : targetProperty.getTypeInformation().getActualType());
? targetProperty.getTypeInformation().getRequiredMapValueType() : ClassTypeInformation.OBJECT) : targetProperty.getTypeInformation().getActualType());