Package org.apache.accumulo.core.util
Class Merge
- java.lang.Object
-
- org.apache.accumulo.core.util.Merge
-
public class Merge extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerge.MemoryConverterstatic classMerge.MergeExceptionstatic classMerge.Size
-
Constructor Summary
Constructors Constructor Description Merge()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Iterator<Merge.Size>getSizeIterator(AccumuloClient client, String tablename, org.apache.hadoop.io.Text start, org.apache.hadoop.io.Text end)static voidmain(String[] args)protected voidmerge(AccumuloClient client, String table, List<Merge.Size> sizes, int numToMerge)protected longmergeMany(AccumuloClient client, String table, List<Merge.Size> sizes, long goalSize, boolean force, boolean last)protected voidmergeSome(AccumuloClient client, String table, List<Merge.Size> sizes, int numToMerge)voidmergomatic(AccumuloClient client, String table, org.apache.hadoop.io.Text start, org.apache.hadoop.io.Text end, long goalSize, boolean force)protected voidmessage(String format, Object... args)voidstart(String[] args)
-
-
-
Method Detail
-
start
public void start(String[] args) throws Merge.MergeException
- Throws:
Merge.MergeException
-
main
public static void main(String[] args) throws Merge.MergeException
- Throws:
Merge.MergeException
-
mergomatic
public void mergomatic(AccumuloClient client, String table, org.apache.hadoop.io.Text start, org.apache.hadoop.io.Text end, long goalSize, boolean force) throws Merge.MergeException
- Throws:
Merge.MergeException
-
mergeMany
protected long mergeMany(AccumuloClient client, String table, List<Merge.Size> sizes, long goalSize, boolean force, boolean last) throws Merge.MergeException
- Throws:
Merge.MergeException
-
mergeSome
protected void mergeSome(AccumuloClient client, String table, List<Merge.Size> sizes, int numToMerge) throws Merge.MergeException
- Throws:
Merge.MergeException
-
merge
protected void merge(AccumuloClient client, String table, List<Merge.Size> sizes, int numToMerge) throws Merge.MergeException
- Throws:
Merge.MergeException
-
getSizeIterator
protected Iterator<Merge.Size> getSizeIterator(AccumuloClient client, String tablename, org.apache.hadoop.io.Text start, org.apache.hadoop.io.Text end) throws Merge.MergeException
- Throws:
Merge.MergeException
-
-