public int put ( final byte [ ] array , final int offset , final int length , final int value ) { final long hash = MurmurHash3 . hash ( array , offset , length ) ; final WriteLock writeLock = lock [ ( int ) ( hash >>> shift ) ] . writeLock ( ) ; try { writeLock . lock ( ) ; return stripe [ ( int ) ( hash >>> shift ) ] . put ( array , offset , length , hash , value ) ; } finally { writeLock . unlock ( ) ; } }
Sets the value associated with a given key .