hazelcast/src/main/java/com/hazelcast/map/DefaultRecordStore.java
private void removeIndexByPreserving(Set<Data> keysToPreserve) {
        final Set<Data> currentKeySet = records.keySet();
        currentKeySet.removeAll(keysToPreserve);

        removeIndex(currentKeySet);
    }
/**
     * Removes indexes by excluding keysToPreserve.
     *
     * @param keysToPreserve should not be removed from index.
     */
Removes indexes by excluding keysToPreserve.
@param keysToPreserve should not be removed from index.
Removes indexes by excluding keysToPreserve . @param keysToPreserve should not be removed from index .
private void removeIndexByPreserving(Set<Data> keysToPreserve) {
        final Set<Data> currentKeySet = records.keySet();
        currentKeySet.removeAll(keysToPreserve);
        removeIndex(currentKeySet);
    }
private void removeIndexByPreserving ( Set < Data > keysToPreserve ) { final Set < Data > currentKeySet = records . keySet ( ) ; currentKeySet . removeAll ( keysToPreserve ) ; removeIndex ( currentKeySet ) ; }
Removes indexes by excluding keysToPreserve.
Removes indexes by excluding keysToPreserve .