private void fullScanLocalDataToClear ( Indexes indexes ) { InternalIndex [ ] indexesSnapshot = indexes . getIndexes ( ) ; for ( Record record : storage . values ( ) ) { Data key = record . getKey ( ) ; Object value = Records . getValueOrCachedValue ( record , serializationService ) ; indexes . removeEntry ( key , value , Index . OperationSource . SYSTEM ) ; } Indexes . markPartitionAsUnindexed ( partitionId , indexesSnapshot ) ; }
Clears local data of this partition from global index by doing partition full - scan .