long getDirectMemoryUsage() {
    return validIndexSegments.values().stream().mapToLong(IndexSegment::getDirectMemoryUsage).sum();
  }
@return The direct memory usage for this persistent index in bytes.
ambry-store/src/main/java/com/github/ambry/store/PersistentIndex.java