use of org.apache.accumulo.core.clientImpl.CompressedIterators.IterConfig in project accumulo by apache.
the class ConditionCheckerContext method buildIterator.
SortedKeyValueIterator<Key, Value> buildIterator(SortedKeyValueIterator<Key, Value> systemIter, TCondition tc) throws IOException {
ArrayByteSequence key = new ArrayByteSequence(tc.iterators);
MergedIterConfig mic = mergedIterCache.get(key);
if (mic == null) {
IterConfig ic = compressedIters.decompress(tc.iterators);
List<IterInfo> mergedIters = new ArrayList<>(tableIters.size() + ic.ssiList.size());
Map<String, Map<String, String>> mergedItersOpts = new HashMap<>(tableIterOpts.size() + ic.ssio.size());
IterConfigUtil.mergeIteratorConfig(mergedIters, mergedItersOpts, tableIters, tableIterOpts, ic.ssiList, ic.ssio);
mic = new MergedIterConfig(mergedIters, mergedItersOpts);
mergedIterCache.put(key, mic);
}
IterLoad iterLoad = new IterLoad().iters(mic.mergedIters).iterOpts(mic.mergedItersOpts).iterEnv(tie).useAccumuloClassLoader(true).context(context).classCache(classCache);
return IterConfigUtil.loadIterators(systemIter, iterLoad);
}
Aggregations