Class SegKeyRangeUtil
- java.lang.Object
-
- org.apache.hadoop.conf.Configured
-
- com.mapr.fs.hbase.tools.mapreduce.SegKeyRangeUtil
-
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class SegKeyRangeUtil extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSegKeyRangeUtil.ServiceName
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFIRSTKEYNAMEstatic java.lang.StringKEYPREFIXstatic java.lang.StringLASTKEYNAMEstatic java.lang.StringSucceedFileName
-
Constructor Summary
Constructors Constructor Description SegKeyRangeUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.hadoop.hbase.client.ScanbuildScan(java.lang.String jobname, org.apache.hadoop.conf.Configuration conf)static booleancopyFileWithPrefix(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path srcDir, org.apache.hadoop.fs.Path dstDir, org.apache.hadoop.conf.Configuration conf, java.lang.String prefix)static voidmain(java.lang.String[] args)static java.lang.StringresultToString(org.apache.hadoop.hbase.client.Result res)intrun(java.lang.String[] args)
-
-
-
Field Detail
-
KEYPREFIX
public static final java.lang.String KEYPREFIX
- See Also:
- Constant Field Values
-
FIRSTKEYNAME
public static final java.lang.String FIRSTKEYNAME
- See Also:
- Constant Field Values
-
LASTKEYNAME
public static final java.lang.String LASTKEYNAME
- See Also:
- Constant Field Values
-
SucceedFileName
public static final java.lang.String SucceedFileName
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildScan
public static org.apache.hadoop.hbase.client.Scan buildScan(java.lang.String jobname, org.apache.hadoop.conf.Configuration conf)
-
copyFileWithPrefix
public static boolean copyFileWithPrefix(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path srcDir, org.apache.hadoop.fs.Path dstDir, org.apache.hadoop.conf.Configuration conf, java.lang.String prefix) throws java.io.IOException- Throws:
java.io.IOException
-
resultToString
public static java.lang.String resultToString(org.apache.hadoop.hbase.client.Result res)
-
run
public int run(java.lang.String[] args) throws java.lang.Exception- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args)
-
-