K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.public class EmptyContextBuilder<K,V> extends Object implements PartitionContextBuilder<K,V,EmptyContext>
context
builder that makes EmptyContext
.Constructor and Description |
---|
EmptyContextBuilder() |
Modifier and Type | Method and Description |
---|---|
EmptyContext |
build(LearningEnvironment env,
Iterator<UpstreamEntry<K,V>> upstreamData,
long upstreamDataSize)
Builds a new partition
context from an upstream data. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, build
public EmptyContext 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.build
in interface PartitionContextBuilder<K,V,EmptyContext>
env
- Learning environment.upstreamData
- Partition upstream
data.upstreamDataSize
- Partition upstream
data size.context
.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024