|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.zebra.io.KeyDistribution
public class KeyDistribution
Class used to convey the information of how on-disk data are distributed among key-partitioned buckets. This class is used by the MapReduce layer to calculate intelligent splits.
Method Summary | |
---|---|
BlockDistribution |
getBlockDistribution(RawComparable key)
|
RawComparable[] |
getKeys()
Get the list of sampling keys |
long |
getMinStepSize()
Get the minimum split step size from all tables in union |
long |
length()
Get the total unique bytes contained in the key-partitioned buckets. |
static KeyDistribution |
merge(KeyDistribution[] sourceKeys)
Merge the key samples Algorithm: select the smallest key from all clean source ranges and ranges subsequent to respective dirty ranges. |
int |
resize(BlockDistribution lastBd)
|
int |
size()
Get the size of the key sampling. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long length()
public int size()
public long getMinStepSize()
public RawComparable[] getKeys()
public BlockDistribution getBlockDistribution(RawComparable key)
public static KeyDistribution merge(KeyDistribution[] sourceKeys) throws IOException
sourceKeys
- key samples to be merged
IOException
public int resize(BlockDistribution lastBd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |