|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.indexer.partition.PartitionManager.Merger
public class PartitionManager.Merger
A threadable class used for merging a list of partitions.
| Field Summary | |
|---|---|
protected DiskPartition |
newDP
The new disk partition resulting from the merge. |
protected int |
newPart
The new partition created in the merge. |
protected java.lang.Thread |
parent
The thread that instantiated us. |
protected java.util.List<DelMap> |
preDelMaps
The list of delmaps for the partitions. |
protected ReadableBuffer[] |
preMaps
The deletion bitmaps for the partitions at startup. |
protected java.util.List<DiskPartition> |
toMerge
The list of partitions that we wish to merge. |
| Constructor Summary | |
|---|---|
PartitionManager.Merger(java.util.List<DiskPartition> l,
FileLock localMergeLock)
Instantiates a merger for the given list of partitions. |
|
| Method Summary | |
|---|---|
DiskPartition |
merge()
Merges. |
void |
run()
Does the merge of the partitions. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected DiskPartition newDP
protected java.util.List<DiskPartition> toMerge
protected java.util.List<DelMap> preDelMaps
protected ReadableBuffer[] preMaps
protected java.lang.Thread parent
protected int newPart
| Constructor Detail |
|---|
public PartitionManager.Merger(java.util.List<DiskPartition> l,
FileLock localMergeLock)
l - The list of partitions to merge.localMergeLock - the lock file to use when releasing the merge
lock.| Method Detail |
|---|
public DiskPartition merge()
public void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||