public long sizeInBytes() {
    long size = FILE_NAME_FIELD_SIZE_IN_BYTES + logSegment.getFileName().length() +
        FILE_SIZE_FIELD_SIZE_IN_BYTES + LIST_SIZE_IN_BYTES;
    for (FileInfo storeFileInfo : indexSegments) {
      size += storeFileInfo.sizeInBytes();
    }
    size += LIST_SIZE_IN_BYTES;
    for (FileInfo storeFileInfo : bloomFilters) {
      size += storeFileInfo.sizeInBytes();
    }
    return size;
  }
Get the size of the LogInfo object in bytes.
@return The size of the LogInfo object in bytes.
ambry-api/src/main/java/com/github/ambry/store/StoreLogInfo.java