private Integer getKeyPartitionId ( byte [ ] key ) { Integer keyPartitionId = storeInstance . getNodesPartitionIdForKey ( nodeId , key ) ; Utils . notNull ( keyPartitionId ) ; return keyPartitionId ; }
Given the key figures out which partition on the local node hosts the key .