@Override public void putAll(final List<KeyValue<Bytes, byte[]>> entries) { inner.putAll(entries); for (final KeyValue<Bytes, byte[]> entry : entries) { changeLogger.logChange(entry.key, entry.value); } }
@Override public void putAll(final List<KeyValue<K, V>> entries) { this.inner.putAll(entries); for (final KeyValue<K, V> entry : entries) { final K key = entry.key; changeLogger.logChange(key, entry.value); } }
@Override public void putAll(List<KeyValue<K, V>> entries) { this.inner.putAll(entries); for (KeyValue<K, V> entry : entries) { K key = entry.key; changeLogger.logChange(key, entry.value); } }
@Override public void store(final BinaryResult result) { requireNonNull(result); // The join key prefix is an ordered list of values from the binding set that match the join variables. // This is a prefix for every row that holds values for a specific set of join variable values. final Side side = result.getSide(); final VisibilityBindingSet bs = result.getResult(); final String joinKeyPrefix = makeCommaDelimitedValues(side, joinVars, bs, joinVars.size()); final List<KeyValue<String, VisibilityBindingSet>> values = new ArrayList<>(); // For each join variable set, we need a start key for scanning. final String startKey = joinKeyPrefix + START_RANGE_SUFFIX; values.add( new KeyValue<>(startKey, RANGE_MARKER_VALUE) ); // The actual value that was emitted as a result. final String valueKey = makeCommaDelimitedValues(side, allVars, bs, joinVars.size()); values.add( new KeyValue<>(valueKey, bs) ); // And the end key for scanning. final String endKey = joinKeyPrefix + END_RANGE_SUFFIX; values.add( new KeyValue<>(endKey, RANGE_MARKER_VALUE) ); // Write the pairs to the store. log.debug("\nStoring the following values: {}\n", values); store.putAll( values ); }