public boolean isInPlace(byte[] id){
  ByteBuffer idBuffer=ByteBuffer.wrap(id);
  while (idBuffer.hasRemaining()) {
    if (idBuffer.get() != 0) {
      return false;
    }
    int len=DataUtils.readVarInt(idBuffer);
    idBuffer.position(idBuffer.position() + len);
  }
  return true;
}

public boolean isInPlace ( byte [ ] id ) { ByteBuffer idBuffer = ByteBuffer . wrap ( id ) ; while ( idBuffer . hasRemaining ( ) ) { if ( idBuffer . get ( ) != 0 ) { return false ; } int len = DataUtils . readVarInt ( idBuffer ) ; idBuffer . position ( idBuffer . position ( ) + len ) ; } return true ; }
check whether the id itself contains all the data . this operation does not cause any reads in the map .
