public Builder setDataSource(String dataSource) { this.dataSource = new TableDataSource(dataSource); return this; }
public SegmentMetadataQueryBuilder dataSource(String ds) { dataSource = new TableDataSource(ds); return this; }
public DataSourceMetadataQueryBuilder dataSource(String ds) { dataSource = new TableDataSource(ds); return this; }
public Builder setDataSource(String dataSource) { this.dataSource = new TableDataSource(dataSource); return this; }
public TimeseriesQueryBuilder dataSource(String ds) { dataSource = new TableDataSource(ds); return this; }
public SelectQueryBuilder dataSource(String ds) { dataSource = new TableDataSource(ds); return this; }
public TimeseriesQueryBuilder dataSource(String ds) { dataSource = new TableDataSource(ds); return this; }
public ScanQueryBuilder dataSource(String ds) { dataSource = new TableDataSource(ds); return this; }
public TopNQueryBuilder dataSource(String d) { dataSource = new TableDataSource(d); return this; }
public SearchQueryBuilder dataSource(String d) { dataSource = new TableDataSource(d); return this; }
public TimeBoundaryQueryBuilder dataSource(String ds) { dataSource = new TableDataSource(ds); return this; }
public TopNQueryBuilder dataSource(String d) { dataSource = new TableDataSource(d); return this; }
public SearchQueryBuilder dataSource(String d) { dataSource = new TableDataSource(d); return this; }
public TimeBoundaryQueryBuilder dataSource(String ds) { dataSource = new TableDataSource(ds); return this; }
new TableDataSource(dataSourceName) ); final Interval theInterval = Intervals.of(interval.replace("_", "/"));
TimelineLookup<String, ServerSelector> timeline = timelineServerView.getTimeline(new TableDataSource(dataSourceName)); Iterable<TimelineObjectHolder<String, ServerSelector>> serversLookup = timeline != null ? timeline.lookup( theInterval
.configure(JsonGenerator.Feature.AUTO_CLOSE_TARGET, false); final SegmentMetadataQuery query = new SegmentMetadataQuery( new TableDataSource("dataSource"), new SpecificSegmentSpec(new SegmentDescriptor(index.getDataInterval(), "0", 0)), new ListColumnIncluderator(getColumnsToInclude(index)),
public static List<LocatedSegmentDescriptor> getTargetLocations( TimelineServerView serverView, DataSource datasource, List<Interval> intervals, int numCandidates ) { TimelineLookup<String, ServerSelector> timeline = serverView.getTimeline(datasource); if (timeline == null) { return Collections.emptyList(); } List<LocatedSegmentDescriptor> located = Lists.newArrayList(); for (Interval interval : intervals) { for (TimelineObjectHolder<String, ServerSelector> holder : timeline.lookup(interval)) { for (PartitionChunk<ServerSelector> chunk : holder.getObject()) { ServerSelector selector = chunk.getObject(); final SegmentDescriptor descriptor = new SegmentDescriptor( holder.getInterval(), holder.getVersion(), chunk.getChunkNumber() ); long size = selector.getSegment().getSize(); List<DruidServerMetadata> candidates = selector.getCandidates(numCandidates); located.add(new LocatedSegmentDescriptor(descriptor, size, candidates)); } } } return located; } }