Package net.minecraft.util.thread
Class ParallelMapTransform.BatchedTaskSplitter<K,U,V>
java.lang.Object
net.minecraft.util.thread.ParallelMapTransform.SplitterBase<K,U,V>
net.minecraft.util.thread.ParallelMapTransform.BatchedTaskSplitter<K,U,V>
- Enclosing class:
ParallelMapTransform
static class ParallelMapTransform.BatchedTaskSplitter<K,U,V>
extends ParallelMapTransform.SplitterBase<K,U,V>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBatchedTaskSplitter
(BiFunction<K, U, V> p_405224_, int p_405356_, int p_405090_) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
batchSize
(int p_405542_) private static <K,
U, V> Runnable createTask
(Map<K, V> p_404882_, int p_404840_, int p_405439_, ParallelMapTransform.Container<K, U, V> p_405382_) protected CompletableFuture
<?> scheduleBatch
(ParallelMapTransform.Container<K, U, V> p_405061_, int p_405498_, int p_405344_, Executor p_404656_) protected CompletableFuture
<Map<K, V>> scheduleFinalOperation
(CompletableFuture<?> p_405225_, ParallelMapTransform.Container<K, U, V> p_404779_) Methods inherited from class net.minecraft.util.thread.ParallelMapTransform.SplitterBase
scheduleTasks
-
Field Details
-
result
-
batchSize
private final int batchSize -
firstUndersizedBatchIndex
private final int firstUndersizedBatchIndex
-
-
Constructor Details
-
BatchedTaskSplitter
BatchedTaskSplitter(BiFunction<K, U, V> p_405224_, int p_405356_, int p_405090_)
-
-
Method Details
-
scheduleBatch
protected CompletableFuture<?> scheduleBatch(ParallelMapTransform.Container<K, U, V> p_405061_, int p_405498_, int p_405344_, Executor p_404656_) - Specified by:
scheduleBatch
in classParallelMapTransform.SplitterBase<K,
U, V>
-
batchSize
protected int batchSize(int p_405542_) - Specified by:
batchSize
in classParallelMapTransform.SplitterBase<K,
U, V>
-
createTask
private static <K,U, Runnable createTaskV> (Map<K, V> p_404882_, int p_404840_, int p_405439_, ParallelMapTransform.Container<K, U, V> p_405382_) -
scheduleFinalOperation
protected CompletableFuture<Map<K,V>> scheduleFinalOperation(CompletableFuture<?> p_405225_, ParallelMapTransform.Container<K, U, V> p_404779_) - Specified by:
scheduleFinalOperation
in classParallelMapTransform.SplitterBase<K,
U, V>
-