Package net.minecraft.util.thread
Class ParallelMapTransform.SingleTaskSplitter<K,U,V>
java.lang.Object
net.minecraft.util.thread.ParallelMapTransform.SplitterBase<K,U,V>
net.minecraft.util.thread.ParallelMapTransform.SingleTaskSplitter<K,U,V>
- Enclosing class:
ParallelMapTransform
static class ParallelMapTransform.SingleTaskSplitter<K,U,V>
extends ParallelMapTransform.SplitterBase<K,U,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
batchSize
(int p_405267_) protected CompletableFuture
<?> scheduleBatch
(ParallelMapTransform.Container<K, U, V> p_404951_, int p_405718_, int p_404688_, Executor p_404914_) protected CompletableFuture
<Map<K, V>> scheduleFinalOperation
(CompletableFuture<?> p_404928_, ParallelMapTransform.Container<K, U, V> p_405541_) Methods inherited from class net.minecraft.util.thread.ParallelMapTransform.SplitterBase
scheduleTasks
-
Constructor Details
-
SingleTaskSplitter
SingleTaskSplitter(BiFunction<K, U, V> pOperation, int pSize)
-
-
Method Details
-
batchSize
protected int batchSize(int p_405267_) - Specified by:
batchSize
in classParallelMapTransform.SplitterBase<K,
U, V>
-
scheduleBatch
protected CompletableFuture<?> scheduleBatch(ParallelMapTransform.Container<K, U, V> p_404951_, int p_405718_, int p_404688_, Executor p_404914_) - Specified by:
scheduleBatch
in classParallelMapTransform.SplitterBase<K,
U, V>
-
scheduleFinalOperation
protected CompletableFuture<Map<K,V>> scheduleFinalOperation(CompletableFuture<?> p_404928_, ParallelMapTransform.Container<K, U, V> p_405541_) - Specified by:
scheduleFinalOperation
in classParallelMapTransform.SplitterBase<K,
U, V>
-