Skip to content

Commit

Permalink
feat(db): implement whileEqualPrefix with startAtKey
Browse files Browse the repository at this point in the history
Implements the new whileEqualPrefix with startAtKey method. This was introduces in Zeebe for
 terminating child instances in batches.
  • Loading branch information
remcowesterhoud committed May 1, 2023
1 parent e2ea71f commit bb98534
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ public void whileEqualPrefix(
whileEqualPrefix(context, keyPrefix, keyInstance, valueInstance, visitor);
}

@Override
public void whileEqualPrefix(
final DbKey keyPrefix,
final KeyType startAtKey,
final KeyValuePairVisitor<KeyType, ValueType> visitor) {
whileEqualPrefix(context, startAtKey, keyPrefix, keyInstance, valueInstance, visitor);
}

@Override
public void deleteExisting(final KeyType key) {
ensureInOpenTransaction(
Expand Down

0 comments on commit bb98534

Please sign in to comment.