net.minecraft.util.thread

class AsyncHelper$Batch<K, U, V>

extends AsyncHelper$Batcher<K, U, V>

net.minecraft.util.thread.ParallelMapTransform$BatchedTaskSplitter
net.minecraft.util.thread.ParallelMapTransform$BatchedTaskSplitter
net.minecraft.class_10769$class_10770
net.minecraft.util.thread.AsyncHelper$Batch

Field summary

Modifier and TypeField
private final Map<K, V>
result
result
field_56618
entries
private final int
batchSize
batchSize
field_56619
size
private final int
firstUndersizedBatchIndex
firstUndersizedBatchIndex
field_56620
start

Constructor summary

ModifierConstructor
private (BiFunction<K, U, V> operation, int size, int maxTasks)

Method summary

Modifier and TypeMethod
protected CompletableFuture<?>
scheduleBatch(ParallelMapTransform$Container<K, U, V> container, int startIndex, int endIndex, Executor executor)
scheduleBatch(ParallelMapTransform$Container<K, U, V> container, int startIndex, int endIndex, Executor executor)
method_67616(class_10769$class_10771<K, U, V> arg0, int arg1, int arg2, Executor arg3)
newBatch(AsyncHelper$Future<K, U, V> arg0, int arg1, int arg2, Executor arg3)
protected int
batchSize(int index)
batchSize(int index)
method_67614(int arg0)
getLastIndex(int arg0)
private static <K, U, V> Runnable
createTask(Map<K, V> result, int startIndex, int endIndex, ParallelMapTransform$Container<K, U, V> container)
createTask(Map<K, V> result, int startIndex, int endIndex, ParallelMapTransform$Container<K, U, V> container)
method_67617(Map<K, V> arg0, int arg1, int arg2, class_10769$class_10771<K, U, V> arg3)
newTask(Map<K, V> futures, int size, int maxCount, AsyncHelper$Future<K, U, V> entry)
protected CompletableFuture<Map<K, V>>
scheduleFinalOperation(CompletableFuture<?> allTasksDone, ParallelMapTransform$Container<K, U, V> container)
scheduleFinalOperation(CompletableFuture<?> allTasksDone, ParallelMapTransform$Container<K, U, V> container)
method_67619(CompletableFuture<?> arg0, class_10769$class_10771<K, U, V> arg1)
addLastTask(CompletableFuture<?> arg0, AsyncHelper$Future<K, U, V> arg1)