protected boolean isItemAccepted ( byte [ ] key ) { boolean entryAccepted = false ; if ( ! fetchOrphaned ) { if ( isKeyNeeded ( key ) ) { entryAccepted = true ; } } else { if ( ! StoreRoutingPlan . checkKeyBelongsToNode ( key , nodeId , initialCluster , storeDef ) ) { entryAccepted = true ; } } return entryAccepted ; }
Determines if entry is accepted . For normal usage this means confirming that the key is needed . For orphan usage this simply means confirming the key belongs to the node .