// 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 SpatialDecimationQuery accumuloQuery;
if ((query == null)) {
accumuloQuery = new SpatialDecimationQuery(
Arrays.asList(new ByteArrayId[] {
adapter.getAdapterId()
}),
index,
width,
height,
pixelSize,
filter,
adapter,
envelope,
authorizations);
}
else if (query.isSupported(index)) {
// construct the query
accumuloQuery = new SpatialDecimationQuery(
Arrays.asList(new ByteArrayId[] {
adapter.getAdapterId()
}),
index,
query.getIndexConstraints(index.getIndexStrategy()),
query.createFilters(index.getIndexModel()),
width,
height,
pixelSize,
filter,
adapter,
envelope,
authorizations);
}
else {
continue;
}
results.add((CloseableIterator<SimpleFeature>) accumuloQuery.query(
accumuloOperations,
new MemoryAdapterStore(
new DataAdapter[] {
adapter
}),