Package stroom.mapreduce.v2
Class BlockingPairQueue<K,V>
- java.lang.Object
-
- stroom.mapreduce.v2.BlockingPairQueue<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<Pair<K,V>>
,OutputCollector<K,V>
,PairQueue<K,V>
,Source<K,V>
public class BlockingPairQueue<K,V> extends java.lang.Object implements PairQueue<K,V>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BlockingPairQueue(int capacity)
-
-
-
Method Detail
-
collect
public void collect(K key, V value)
- Specified by:
collect
in interfaceOutputCollector<K,V>
-
iterator
public java.util.Iterator<Pair<K,V>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-