docs: private static Map<SegmentId, DataSegment> createLazySegmentsMap(DruidServer server)
    {
      return new AbstractMap<SegmentId, DataSegment>()
      {
        @Override
        public Set<Entry<SegmentId, DataSegment>> entrySet()
        {
          return new AbstractSet<Entry<SegmentId, DataSegment>>()
          {
            @Override
            public Iterator<Entry<SegmentId, DataSegment>> iterator()
            {
              return Iterators.transform(
                  server.iterateAllSegments().iterator(),
                  segment -> new AbstractMap.SimpleImmutableEntry<>(segment.getId(), segment)
              );
            }
  
            @Override
            public int size()
            {
              return server.getTotalSegments();
            }
          };
        }
      };
    }