Package com.complexible.common.collect
Interface RestrictedMarkResetIterator<T>
-
- All Superinterfaces:
java.lang.AutoCloseable,CloseableIterator<T>,Copyable<MarkResetIterator<T>>,java.util.Iterator<T>,MarkResetIterator<T>,ResettableIterator<T>
- All Known Implementing Classes:
MarkResetSkippingIterator,SpoolingMarkResetIterator
public interface RestrictedMarkResetIterator<T> extends MarkResetIterator<T>
An extension to the base interface to support restrictions on the base iterator, for example, to implement the mark-reset behaviour for the cross phase of the merge join. In that case the predicate would restrict the base iterator to the current value of the join key.- Author:
- Pavel Klinov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.complexible.common.base.CloseableIterator
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description RestrictedMarkResetIterator<T>copy()Create a deep copy of the object which does not share any references with the original.static <T> RestrictedMarkResetIterator<T>empty()voidrestrict(java.util.function.Predicate<T> restriction)-
Methods inherited from interface com.complexible.common.base.CloseableIterator
close
-
Methods inherited from interface com.complexible.common.collect.MarkResetIterator
mark, resetToMark
-
Methods inherited from interface com.complexible.common.collect.ResettableIterator
reset
-
-
-
-
Method Detail
-
restrict
void restrict(java.util.function.Predicate<T> restriction)
-
copy
RestrictedMarkResetIterator<T> copy()
Description copied from interface:CopyableCreate a deep copy of the object which does not share any references with the original.
-
empty
static <T> RestrictedMarkResetIterator<T> empty()
-
-