|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.rep.util.ldiff.BlockBag
public class BlockBag
A bag of Blocks used during the LDiff process. Blocks are accessed by their checksum; when checksums collide, blocks are returned in insertion order.
| Constructor Summary | |
|---|---|
BlockBag()
Instantiate a new BlockBag object. |
|
| Method Summary | |
|---|---|
void |
add(Block b)
Adds a new Block to the bag. |
List<Block> |
get(long chksum)
Returns all Blocks in the bag with a given checksum. |
Block |
getBlock()
|
int |
getBlockIndex()
|
Iterator<Block> |
iterator()
Returns an iterator over the blocks in the bag, in insertion order. |
List<Block> |
remove(Block b)
Removes the given Block, plus any blocks inserted previous to the given Block. |
List<Block> |
removeAll()
Removes all blocks from the bag. |
int |
size()
Returns the number of blocks in this bag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockBag()
| Method Detail |
|---|
public void add(Block b)
b - The Block to be added.public List<Block> get(long chksum)
chksum - The checksum to match
public Iterator<Block> iterator()
iterator in interface Iterable<Block>public List<Block> remove(Block b)
b - The Block to remove.
public List<Block> removeAll()
public int getBlockIndex()
public Block getBlock()
public int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||