public class HBaseTest extends Object
| Constructor and Description |
|---|
HBaseTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addRecord(String tableName,
String rowKey,
String family,
String qualifier,
String value)
Put (or insert) a row
|
static void |
creatTable(String tableName,
String[] familys)
Create a table
|
static void |
deleteTable(String tableName)
Delete a table
|
static void |
delRecord(String tableName,
String rowKey)
Delete a row
|
static void |
getAllRecord(String tableName)
Scan (or list) a table
|
static void |
getOneRecord(String tableName,
String rowKey)
Get a row
|
static void |
main(String[] agrs) |
public static void creatTable(String tableName, String[] familys) throws Exception
Exceptionpublic static void deleteTable(String tableName) throws Exception
Exceptionpublic static void addRecord(String tableName, String rowKey, String family, String qualifier, String value) throws Exception
Exceptionpublic static void delRecord(String tableName, String rowKey) throws IOException
IOExceptionpublic static void getOneRecord(String tableName, String rowKey) throws IOException
IOExceptionpublic static void getAllRecord(String tableName)
public static void main(String[] agrs)
Copyright © 2016. All rights reserved.