public interface ConflictResolutionStrategy
| Modifier and Type | Method and Description |
|---|---|
Stream<HoodieInstant> |
getCandidateInstants(HoodieTableMetaClient metaClient,
HoodieInstant currentInstant,
Option<HoodieInstant> lastSuccessfulInstant)
Stream of instants to check conflicts against.
|
boolean |
hasConflict(ConcurrentOperation thisOperation,
ConcurrentOperation otherOperation)
Implementations of this method will determine whether a conflict exists between 2 commits.
|
boolean |
isPreCommitRequired()
Write clients uses their preCommit API to run conflict resolution.
|
Option<HoodieCommitMetadata> |
resolveConflict(HoodieTable table,
ConcurrentOperation thisOperation,
ConcurrentOperation otherOperation)
Implementations of this method will determine how to resolve a conflict between 2 commits.
|
Stream<HoodieInstant> getCandidateInstants(HoodieTableMetaClient metaClient, HoodieInstant currentInstant, Option<HoodieInstant> lastSuccessfulInstant)
@PublicAPIMethod(maturity=EVOLVING) boolean hasConflict(ConcurrentOperation thisOperation, ConcurrentOperation otherOperation)
thisOperation - otherOperation - @PublicAPIMethod(maturity=EVOLVING) Option<HoodieCommitMetadata> resolveConflict(HoodieTable table, ConcurrentOperation thisOperation, ConcurrentOperation otherOperation) throws HoodieWriteConflictException
thisOperation - otherOperation - HoodieWriteConflictException@PublicAPIMethod(maturity=EVOLVING) boolean isPreCommitRequired()
Copyright © 2024 The Apache Software Foundation. All rights reserved.