public class KeyDistribution
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
public long length()
public int size()
public long getMinStepSize()
public RawComparable[] getKeys()
public BlockDistribution getBlockDistribution(RawComparable key)
public static KeyDistribution merge(KeyDistribution[] sourceKeys) throws java.io.IOException
sourceKeys
- key samples to be mergedjava.io.IOException
public int resize(BlockDistribution lastBd)
Copyright © 2007-2012 The Apache Software Foundation