use of datawave.query.iterator.SourceManager in project datawave by NationalSecurityAgency.
the class IteratorBuildingVisitor method setSource.
public IteratorBuildingVisitor setSource(SourceFactory sourceFactory, IteratorEnvironment env) {
SortedKeyValueIterator<Key, Value> skvi = sourceFactory.getSourceDeepCopy();
this.source = new SourceManager(skvi);
this.env = env;
Map<String, String> options = Maps.newHashMap();
try {
this.source.init(skvi, options, env);
} catch (IOException e) {
throw new RuntimeException(e);
}
return this;
}
Aggregations