@Override
  public long getLong(int index) {
    checkRefCount();
    // Mostly the index specified will land within this current item. Short circuit for that
    int itemIndex;
    if (
      this.itemBeginPos[this.curItemIndex] <= index
        && this.itemBeginPos[this.curItemIndex + 1] > index
    ) {
      itemIndex = this.curItemIndex;
    } else {
      itemIndex = getItemIndex(index);
    }
    return getLong(index, itemIndex);
  }
Fetches the long at the given index. Does not change position of the underlying ByteBuffers
@return the long value at the given index
hbase-common/src/main/java/org/apache/hadoop/hbase/nio/MultiByteBuff.java