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(LearningEnvironment env,
Iterator<UpstreamEntry<K,V>> upstreamData,
long upstreamDataSize,
C ctx)
Builds a new partition
data from a partition upstream data and partition context . |
default D |
build(LearningEnvironment env,
Stream<UpstreamEntry<K,V>> upstreamData,
long upstreamDataSize,
C ctx)
Builds a new partition
data from a partition upstream data and partition context . |
D build(LearningEnvironment env, Iterator<UpstreamEntry<K,V>> upstreamData, long upstreamDataSize, C ctx)
data
from a partition upstream
data and partition context
.
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.ctx
- Partition context
.data
.default D build(LearningEnvironment env, Stream<UpstreamEntry<K,V>> upstreamData, long upstreamDataSize, C ctx)
data
from a partition upstream
data and partition context
.
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.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.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024