|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.versioning.ChainedResolver<T>
public class ChainedResolver<T>
Apply the given inconsistency resolvers in order until there are 1 or fewer items left.
| Constructor Summary | |
|---|---|
ChainedResolver(InconsistencyResolver<T>... resolvers)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.util.List<T> |
resolveConflicts(java.util.List<T> items)
Take two different versions of an object and combine them into a single version of the object Implementations must maintain the contract that resolveConflict([null, null]) == null
if t != null, then
resolveConflict([null, t]) == resolveConflict([t, null]) == t |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedResolver(InconsistencyResolver<T>... resolvers)
| Method Detail |
|---|
public java.util.List<T> resolveConflicts(java.util.List<T> items)
InconsistencyResolverresolveConflict([null, null]) == nullt != null, then
resolveConflict([null, t]) == resolveConflict([t, null]) == t
resolveConflicts in interface InconsistencyResolver<T>items - The items to be resolved
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||