private DeletingIterator(DeletingIterator other, IteratorEnvironment env) { super(other.source.deepCopy(env)); propogateDeletes = other.propogateDeletes; }
private MultiIterator(MultiIterator other, IteratorEnvironment env) { super(other.iters.size()); this.iters = new ArrayList<>(); this.fence = other.fence; for (SortedKeyValueIterator<Key,Value> iter : other.iters) { iters.add(iter.deepCopy(env)); } }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { RowEncodingIterator newInstance; try { newInstance = this.getClass().newInstance(); } catch (Exception e) { throw new RuntimeException(e); } newInstance.sourceIter = sourceIter.deepCopy(env); newInstance.maxBufferSize = maxBufferSize; return newInstance; }
private OrIterator(OrIterator other, IteratorEnvironment env) { ArrayList<TermSource> copiedSources = new ArrayList<>(); for (TermSource TS : other.sources) copiedSources.add(new TermSource(TS.iter.deepCopy(env), new Text(TS.term))); this.sources = Collections.unmodifiableList(copiedSources); }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { SortedKeyValueIterator<Key,Value> newSource = source.deepCopy(env); return new SimpleKVReusingIterator(newSource); }
void setIterator(SortedKeyValueIterator<Key,Value> iter) { current = false; this.iter = iter; if (iflag != null) { ((InterruptibleIterator) this.iter).setInterruptFlag(iflag); } for (FileDataSource fds : deepCopies) { fds.current = false; fds.iter = iter.deepCopy(fds.env); } }
private IntersectingIterator(IntersectingIterator other, IteratorEnvironment env) { if (other.sources != null) { sourcesCount = other.sourcesCount; sources = new TermSource[sourcesCount]; for (int i = 0; i < sourcesCount; i++) { sources[i] = new TermSource(other.sources[i].iter.deepCopy(env), other.sources[i].term); } } }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { return new ProblemReportingIterator(context, tableId, resource, continueOnError, source.deepCopy(env)); }
public void setTerms(SortedKeyValueIterator<Key,Value> source, Collection<String> terms, IteratorEnvironment env) { ArrayList<TermSource> newTerms = new ArrayList<>(); for (String term : terms) { newTerms.add(new TermSource(source.deepCopy(env), new Text(term))); } this.sources = Collections.unmodifiableList(newTerms); }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { return new StatsIterator(source.deepCopy(env), seekCounter, readCounter); }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { SeekingFilter newInstance; try { newInstance = this.getClass().newInstance(); } catch (Exception e) { throw new RuntimeException(e); } newInstance.setSource(getSource().deepCopy(env)); newInstance.negate = negate; return newInstance; }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { Filter newInstance; try { newInstance = this.getClass().newInstance(); } catch (Exception e) { throw new RuntimeException(e); } newInstance.setSource(getSource().deepCopy(env)); newInstance.negate = negate; return newInstance; }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { RowFilter newInstance; try { newInstance = getClass().newInstance(); } catch (Exception e) { throw new RuntimeException(e); } newInstance.setSource(getSource().deepCopy(env)); newInstance.decisionIterator = new RowIterator(getSource().deepCopy(env)); return newInstance; }
private CountingIterator(CountingIterator other, IteratorEnvironment env) { setSource(other.getSource().deepCopy(env)); count = 0; this.deepCopies = other.deepCopies; this.entriesRead = other.entriesRead; deepCopies.add(this); }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { if (sourceIter != null) return new WholeColumnFamilyIterator(sourceIter.deepCopy(env)); return new WholeColumnFamilyIterator(); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.decisionIterator = new RowIterator(source.deepCopy(env)); }
@Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { return new SampleIterator(getSource().deepCopy(env), sampler); } }
public FirstEntryInRowIterator(FirstEntryInRowIterator other, IteratorEnvironment env) { super(); setSource(other.getSource().deepCopy(env)); }
private DebugIterator(DebugIterator other, IteratorEnvironment env) { setSource(other.getSource().deepCopy(env)); prefix = other.prefix; }
@Override public VersioningIterator deepCopy(IteratorEnvironment env) { VersioningIterator copy = new VersioningIterator(); copy.setSource(getSource().deepCopy(env)); copy.maxVersions = maxVersions; return copy; }