public interface UsedSegmentsRetriever
| Modifier and Type | Method and Description |
|---|---|
Collection<DataSegment> |
getUsedSegmentsForIntervals(String dataSource,
List<org.joda.time.Interval> intervals,
Segments visibility)
Get all segments which may include any data in the interval and are marked as used.
|
Collection<DataSegment> getUsedSegmentsForIntervals(String dataSource, List<org.joda.time.Interval> intervals, Segments visibility) throws IOException
dataSource - The datasource to queryintervals - The intervals for which used segments are to be returnedvisibility - Whether only visible or visible as well as overshadowed segments should be returned. The
visibility is considered within the specified intervals: that is, a segment which is visible
outside of the specified intervals, but overshadowed on the specified intervals will not be
returned if Segments.ONLY_VISIBLE is passed. See more precise description in the doc for
Segments.IOExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.