public static class SingleEntryIndexForwardIndexAccessor.SingleValueDiffBuilder<V> extends DirectInputDataDiffBuilder<java.lang.Integer,V>
| Constructor and Description |
|---|
SingleValueDiffBuilder(int inputId,
java.util.Map<java.lang.Integer,V> currentData) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
differentiate(java.util.Map<java.lang.Integer,V> newData,
KeyValueUpdateProcessor<? super java.lang.Integer,? super V> addProcessor,
KeyValueUpdateProcessor<? super java.lang.Integer,? super V> updateProcessor,
RemovedKeyProcessor<? super java.lang.Integer> removeProcessor)
produce a diff between existing data and newData and consume result to addProcessor, updateProcessor and removeProcessor.
|
java.util.Collection<java.lang.Integer> |
getKeys() |
public SingleValueDiffBuilder(int inputId,
java.util.Map<java.lang.Integer,V> currentData)
public java.util.Collection<java.lang.Integer> getKeys()
getKeys in class DirectInputDataDiffBuilder<java.lang.Integer,V>InputDataDiffBuilder.myInputIdpublic boolean differentiate(java.util.Map<java.lang.Integer,V> newData, KeyValueUpdateProcessor<? super java.lang.Integer,? super V> addProcessor, KeyValueUpdateProcessor<? super java.lang.Integer,? super V> updateProcessor, RemovedKeyProcessor<? super java.lang.Integer> removeProcessor) throws StorageException
InputDataDiffBuilderdifferentiate in class InputDataDiffBuilder<java.lang.Integer,V>StorageException