Class AccumulateAllResults<T>
- java.lang.Object
-
- zipkin2.storage.cassandra.internal.call.AccumulateAllResults<T>
-
- All Implemented Interfaces:
Call.FlatMapper<com.datastax.driver.core.ResultSet,T>
- Direct Known Subclasses:
AccumulateTraceIdTsUuid
,DistinctSortedStrings
public abstract class AccumulateAllResults<T> extends java.lang.Object implements Call.FlatMapper<com.datastax.driver.core.ResultSet,T>
-
-
Constructor Summary
Constructors Constructor Description AccumulateAllResults()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.function.BiConsumer<com.datastax.driver.core.Row,T>
accumulator()
protected java.util.function.Function<T,T>
finisher()
Customizes the aggregated result.Call<T>
map(com.datastax.driver.core.ResultSet rs)
protected abstract java.util.function.Supplier<T>
supplier()
-
-
-
Method Detail
-
supplier
protected abstract java.util.function.Supplier<T> supplier()
-
accumulator
protected abstract java.util.function.BiConsumer<com.datastax.driver.core.Row,T> accumulator()
-
finisher
protected java.util.function.Function<T,T> finisher()
Customizes the aggregated result. For example, summarizing or making immutable.
-
map
public Call<T> map(com.datastax.driver.core.ResultSet rs)
- Specified by:
map
in interfaceCall.FlatMapper<com.datastax.driver.core.ResultSet,T>
-
-