public V getValue ( int index ) { int entryPosition = getIntValue ( POSITIONS_ARRAY_OFFSET + index * OIntegerSerializer . INT_SIZE ) ; // skip hash code entryPosition += OLongSerializer . LONG_SIZE ; if ( encryption == null ) { // skip key entryPosition += getObjectSizeInDirectMemory ( keySerializer , entryPosition ) ; } else { final int encryptedLength = getIntValue ( entryPosition ) ; entryPosition += encryptedLength + OIntegerSerializer . INT_SIZE ; } return deserializeFromDirectMemory ( valueSerializer , entryPosition ) ; }
Obtains the value stored under the given index in this bucket .