Search in sources :

Example 1 with IntersectingIterator

use of org.apache.accumulo.core.iterators.user.IntersectingIterator in project accumulo-examples by apache.

the class CutoffIntersectingIterator method init.

@Override
public void init(SortedKeyValueIterator<Key, Value> source, Map<String, String> options, IteratorEnvironment env) throws IOException {
    super.init(source, options, env);
    IteratorEnvironment sampleEnv = env.cloneWithSamplingEnabled();
    setMax(sampleEnv, options);
    SortedKeyValueIterator<Key, Value> sampleDC = source.deepCopy(sampleEnv);
    sampleII = new IntersectingIterator();
    sampleII.init(sampleDC, options, env);
}
Also used : IteratorEnvironment(org.apache.accumulo.core.iterators.IteratorEnvironment) IntersectingIterator(org.apache.accumulo.core.iterators.user.IntersectingIterator) Value(org.apache.accumulo.core.data.Value) Key(org.apache.accumulo.core.data.Key)

Aggregations

Key (org.apache.accumulo.core.data.Key)1 Value (org.apache.accumulo.core.data.Value)1 IteratorEnvironment (org.apache.accumulo.core.iterators.IteratorEnvironment)1 IntersectingIterator (org.apache.accumulo.core.iterators.user.IntersectingIterator)1