// data adapter Ids
try (final CloseableIterator<Index> indices = indexStore.getIndices()) {
final List<CloseableIterator<SimpleFeature>> results = new ArrayList<CloseableIterator<SimpleFeature>>();
while (indices.hasNext()) {
final Index index = indices.next();
final DistributedRenderQuery accumuloQuery;
if (query == null) {
accumuloQuery = new DistributedRenderQuery(
Arrays.asList(new ByteArrayId[] {
adapter.getAdapterId()
}),
index,
filter,
adapter,
distributedRenderer,
authorizations);
}
else if (query.isSupported(index)) {
// construct the query
accumuloQuery = new DistributedRenderQuery(
Arrays.asList(new ByteArrayId[] {
adapter.getAdapterId()
}),
index,
query.getIndexConstraints(index.getIndexStrategy()),
query.createFilters(index.getIndexModel()),
filter,
adapter,
distributedRenderer,
authorizations);
}
else {
continue;
}
results.addAll(accumuloQuery.queryDistributedRender(
accumuloOperations,
new MemoryAdapterStore(
new DataAdapter[] {
adapter
}),