K - Type of a key in upstream data.V - Type of a value in upstream data.C - Type of a partition context.D - Type of a partition data.@FunctionalInterface public interface PartitionDataBuilder<K,V,C extends Serializable,D extends AutoCloseable> extends Serializable
upstream data and partition context and makes partition
data. This builder is used to build a partition data and assumed to be called in all cases when
partition data not found on the node that performs computation (it might be the result of a previous node
failure or rebalancing).| Modifier and Type | Method and Description |
|---|---|
default <D2 extends AutoCloseable> |
andThen(IgniteBiFunction<D,C,D2> fun)
Makes a composed partition
data builder that first builds a data and then applies the specified
function on the result. |
D |
build(Iterator<UpstreamEntry<K,V>> upstreamData,
long upstreamDataSize,
C ctx)
Builds a new partition
data from a partition upstream data and partition context |
D build(Iterator<UpstreamEntry<K,V>> upstreamData, long upstreamDataSize, C ctx)
data from a partition upstream data and partition contextupstreamData - Partition upstream data.upstreamDataSize - Partition upstream data size.ctx - Partition context.data.default <D2 extends AutoCloseable> PartitionDataBuilder<K,V,C,D2> andThen(IgniteBiFunction<D,C,D2> fun)
data builder that first builds a data and then applies the specified
function on the result.D2 - New type of a partition data.fun - Function that applied after first partition data is built.data builder.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019