Skip to content

Commit

Permalink
FMWK-200 Provide compatibility with Aerospike Server EE version (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
agrgr authored Jun 29, 2023
1 parent 8197ce8 commit 233ccf1
Show file tree
Hide file tree
Showing 5 changed files with 624 additions and 507 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,8 @@ public void write(Object source, AerospikeWriteData sink) {
public Object toWritableValue(Object source, TypeInformation<?> type) {
return writeConverter.getValueToWrite(source, type);
}

public Map<String, Object> toWritableMap(Map<Object, Object> source) {
return writeConverter.convertMap(source, TypeInformation.MAP);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private List<Object> convertCollection(final Collection<?> source, final TypeInf
return source.stream().map(element -> getValueToWrite(element, componentType)).collect(Collectors.toList());
}

private Map<String, Object> convertMap(final Map<Object, Object> source, final TypeInformation<?> type) {
protected Map<String, Object> convertMap(final Map<Object, Object> source, final TypeInformation<?> type) {
Assert.notNull(source, "Given map must not be null!");
Assert.notNull(type, "Given type must not be null!");

Expand Down
Loading

0 comments on commit 233ccf1

Please sign in to comment.