K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.C
- Type of a partition context
.@FunctionalInterface public interface PartitionContextBuilder<K,V,C extends Serializable> extends Serializable
upstream
data and makes partition context
. This builder is used to
build a partition context
and assumed to be called only once for every partition during a dataset
initialization.EmptyContextBuilder
Modifier and Type | Method and Description |
---|---|
default <C2 extends Serializable> |
andThen(IgniteFunction<C,C2> fun)
Makes a composed partition
context builder that first builds a context and then applies the
specified function on the result. |
C |
build(Iterator<UpstreamEntry<K,V>> upstreamData,
long upstreamDataSize)
Builds a new partition
context from an upstream data. |
C build(Iterator<UpstreamEntry<K,V>> upstreamData, long upstreamDataSize)
context
from an upstream
data.upstreamData
- Partition upstream
data.upstreamDataSize
- Partition upstream
data size.context
.default <C2 extends Serializable> PartitionContextBuilder<K,V,C2> andThen(IgniteFunction<C,C2> fun)
context
builder that first builds a context
and then applies the
specified function on the result.C2
- New type of a partition context
.fun
- Function that applied after first partition context
is built.context
builder.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019