Class DeltaTask.Block
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.DeltaTask.Block
-
- Enclosing class:
- DeltaTask
static final class DeltaTask.Block extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intbeginIndex(package private) longbytesPerUnit(package private) PackConfigconfig(package private) DeltaCachedc(package private) intendIndex(package private) ObjectToPack[]listprivate static intMIN_TOP_PATH(package private) ThreadSafeProgressMonitorpm(package private) java.util.List<DeltaTask>tasks(package private) ObjectReadertemplateReader(package private) intthreadsprivate longtotalWeight
-
Constructor Summary
Constructors Constructor Description Block(int threads, PackConfig config, ObjectReader reader, DeltaCache dc, ThreadSafeProgressMonitor pm, ObjectToPack[] list, int begin, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.ArrayList<DeltaTask.WeightedPath>computeTopPaths()(package private) intcost()(package private) voidpartitionTasks()(package private) DeltaWindowstealWork(DeltaTask forThread)
-
-
-
Field Detail
-
MIN_TOP_PATH
private static final int MIN_TOP_PATH
- See Also:
- Constant Field Values
-
tasks
final java.util.List<DeltaTask> tasks
-
threads
final int threads
-
config
final PackConfig config
-
templateReader
final ObjectReader templateReader
-
dc
final DeltaCache dc
-
pm
final ThreadSafeProgressMonitor pm
-
list
final ObjectToPack[] list
-
beginIndex
final int beginIndex
-
endIndex
final int endIndex
-
totalWeight
private long totalWeight
-
bytesPerUnit
long bytesPerUnit
-
-
Constructor Detail
-
Block
Block(int threads, PackConfig config, ObjectReader reader, DeltaCache dc, ThreadSafeProgressMonitor pm, ObjectToPack[] list, int begin, int end)
-
-
Method Detail
-
cost
int cost()
-
stealWork
DeltaWindow stealWork(DeltaTask forThread)
-
partitionTasks
void partitionTasks()
-
computeTopPaths
private java.util.ArrayList<DeltaTask.WeightedPath> computeTopPaths()
-
-