public IKeyValueEnumerator <Bytes, byte[]> FetchAll(long from, long to)
        {
            var _segments = segments.Segments(from, to, true);

            return(new SegmentEnumerator <S>(
                       _segments,
                       keySchema.HasNextCondition(null, null, from, to),
                       null,
                       null,
                       true));
        }
 public IList <S> SegmentsToSearch <S>(ISegments <S> segments, long from, long to, bool forward) where S : ISegment
 => segments.Segments(from, to, forward).ToList();