| | |
| | | { |
| | | for (MatchingRuleIndex index : indexIdToIndexes.values()) |
| | | { |
| | | final Set<ByteString> keys = new HashSet<>(); |
| | | index.indexEntry(entry, keys); |
| | | for (ByteString key : keys) |
| | | for (ByteString key : indexEntry(index, entry)) |
| | | { |
| | | buffer.put(index, key, entryID); |
| | | } |
| | |
| | | { |
| | | for (MatchingRuleIndex index : indexIdToIndexes.values()) |
| | | { |
| | | HashSet<ByteString> keys = new HashSet<ByteString>(); |
| | | index.indexEntry(entry, keys); |
| | | for (ByteString key : keys) |
| | | for (ByteString key : indexEntry(index, entry)) |
| | | { |
| | | buffer.remove(index, key, entryID); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private Set<ByteString> indexEntry(MatchingRuleIndex index, Entry entry) |
| | | { |
| | | final Set<ByteString> keys = new HashSet<>(); |
| | | index.indexEntry(entry, keys); |
| | | return keys; |
| | | } |
| | | |
| | | /** |
| | | * Update the index to reflect a sequence of modifications in a Modify |
| | | * operation. |