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
Exception
public static void deleteTable(String tableName) throws Exception
Exception
public static void addRecord(String tableName, String rowKey, String family, String qualifier, String value) throws Exception
Exception
public static void delRecord(String tableName, String rowKey) throws IOException
IOException
public static void getOneRecord(String tableName, String rowKey) throws IOException
IOException
public static void getAllRecord(String tableName)
public static void main(String[] agrs)
Copyright © 2016. All rights reserved.