L
- Location typepublic class MovedBlocks<L> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MovedBlocks.Locations<L>
A class for keeping track of a block and its locations
|
Constructor and Description |
---|
MovedBlocks(long winTimeInterval)
initialize the moved blocks collection
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
remove old blocks
|
boolean |
contains(org.apache.hadoop.hdfs.protocol.Block block) |
void |
put(MovedBlocks.Locations<L> block)
add a block thus marking a block to be moved
|
public MovedBlocks(long winTimeInterval)
public void put(MovedBlocks.Locations<L> block)
public boolean contains(org.apache.hadoop.hdfs.protocol.Block block)
public void cleanup()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.