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 2, 2023
1 parent 386188d commit 8c60959
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 8c60959

Please sign in to comment.