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(LearningEnvironment env,
Iterator<UpstreamEntry<K,V>> upstreamData,
long upstreamDataSize)
Builds a new partition
context from an upstream data. |
default C |
build(LearningEnvironment env,
Stream<UpstreamEntry<K,V>> upstreamData,
long upstreamDataSize)
Builds a new partition
context from an upstream data. |
C build(LearningEnvironment env, Iterator<UpstreamEntry<K,V>> upstreamData, long upstreamDataSize)
context from an upstream data.
Important: there is no guarantee that there will be no more than one UpstreamEntry with given key,
UpstreamEntry should be thought rather as a container saving all data from upstream, but omitting uniqueness
constraint. This constraint is omitted to allow upstream data transformers in DatasetBuilder replicating
entries. For example it can be useful for bootstrapping.env - Learning environment.upstreamData - Partition upstream data.upstreamDataSize - Partition upstream data size.context.default C build(LearningEnvironment env, Stream<UpstreamEntry<K,V>> upstreamData, long upstreamDataSize)
context from an upstream data.
Important: there is no guarantee that there will be no more than one UpstreamEntry with given key,
UpstreamEntry should be thought rather as a container saving all data from upstream, but omitting uniqueness
constraint. This constraint is omitted to allow upstream data transformers in DatasetBuilder replicating
entries. For example it can be useful for bootstrapping.env - Learning environment.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.
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025