Batch<T>
, UnsortedSetBatch<T>
public class DistinctBatch<T> extends AbstractBatch<T> implements UnsortedSetBatch<T>
Constructor | Description |
---|---|
DistinctBatch(Batch<T> batch,
ConcurrentHashMap<T,java.lang.Boolean> distinct) |
Modifier and Type | Method | Description |
---|---|---|
<V> UnsortedBagBatch<V> |
collect(Function<? super T,? extends V> function) |
|
<V> UnsortedBagBatch<V> |
flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function) |
|
void |
forEach(Procedure<? super T> procedure) |
|
UnsortedSetBatch<T> |
select(Predicate<? super T> predicate) |
count, makeString, max, maxBy, min, minBy, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong
count, makeString, max, maxBy, min, minBy, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong
public DistinctBatch(Batch<T> batch, ConcurrentHashMap<T,java.lang.Boolean> distinct)
public UnsortedSetBatch<T> select(Predicate<? super T> predicate)
public <V> UnsortedBagBatch<V> collect(Function<? super T,? extends V> function)
public <V> UnsortedBagBatch<V> flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function)
flatCollect
in interface Batch<T>
flatCollect
in interface UnsortedSetBatch<T>
Copyright © 2004–2020. All rights reserved.