for (final DataAdapter<?> a : adapters) {
if (!accumuloAdapterStore.adapterExists(a.getAdapterId())) {
accumuloAdapterStore.addAdapter(a);
}
}
final IndexStore accumuloIndexStore = new AccumuloIndexStore(
accumuloOperations);
final Index[] indices = JobContextIndexStore.getIndices(context);
for (final Index i : indices) {
if (!accumuloIndexStore.indexExists(i.getId())) {
accumuloIndexStore.addIndex(i);
}
}
final AdapterStore jobContextAdapterStore = getDataAdapterStore(
context,
accumuloOperations);
final IndexStore jobContextIndexStore = getIndexStore(
context,
accumuloOperations);
final DataStatisticsStore statisticsStore = new AccumuloDataStatisticsStore(
accumuloOperations);
return new GeoWaveRecordWriter(