Search in sources :

Example 1 with SourceManager

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;
}
Also used : Value(org.apache.accumulo.core.data.Value) SourceManager(datawave.query.iterator.SourceManager) IOException(java.io.IOException) Key(org.apache.accumulo.core.data.Key) PartialKey(org.apache.accumulo.core.data.PartialKey)

Aggregations

SourceManager (datawave.query.iterator.SourceManager)1 IOException (java.io.IOException)1 Key (org.apache.accumulo.core.data.Key)1 PartialKey (org.apache.accumulo.core.data.PartialKey)1 Value (org.apache.accumulo.core.data.Value)1