Skip to content

Commit

Permalink
fix: Long -> Integer
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl committed Jan 10, 2025
1 parent ebb9bb8 commit 8651a97
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public Void storeBatch(List<Bundle> bundles, MessageHeaders headers)
merger.mergeSeperateDeleteBundles(
bundles, mergerConfig.entryUniquenessFhirpathExpression());

// extract all POST/PUT bundle entries (mergedBundle.deleteBundle() contains the DELETE entries)
// extract all POST/PUT bundle entries (mergedBundle.deleteBundle() contains the
// DELETE entries)
var resources = BundleUtil.toListOfResources(fhirContext, mergedBundle.bundle());

var grouped = resources.stream().collect(Collectors.groupingBy(IBaseResource::fhirType));
Expand Down Expand Up @@ -171,7 +172,7 @@ private void storeDeleteBundles(
(Long) headers.get(KafkaHeaders.RECEIVED_TIMESTAMP, ArrayList.class).getFirst();
// in Spring Kafka all messages in a batch are from the same partition
var partition =
(Long) headers.get(KafkaHeaders.RECEIVED_PARTITION, ArrayList.class).getFirst();
(Integer) headers.get(KafkaHeaders.RECEIVED_PARTITION, ArrayList.class).getFirst();
var startOffset = (Long) headers.get(KafkaHeaders.OFFSET, ArrayList.class).getFirst();

var objectKey =
Expand Down Expand Up @@ -201,7 +202,8 @@ public Void storeSingleBundle(Bundle bundle, MessageHeaders messageHeaders)
merger.mergeSeperateDeleteBundles(
List.of(bundle), mergerConfig.entryUniquenessFhirpathExpression());

// extract all POST/PUT bundle entries (mergedBundle.deleteBundle() contains the DELETE entries)
// extract all POST/PUT bundle entries (mergedBundle.deleteBundle() contains the
// DELETE entries)
var resources = BundleUtil.toListOfResources(fhirContext, mergedBundle.bundle());

var grouped = resources.stream().collect(Collectors.groupingBy(IBaseResource::fhirType));
Expand Down

0 comments on commit 8651a97

Please sign in to comment.