public abstract class HTableModel<T extends HTableModel>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static com.fasterxml.jackson.databind.ObjectMapper |
JSON_MAPPER |
| Constructor and Description |
|---|
HTableModel() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
byteValue(java.lang.Object object) |
static byte[] |
byteValueFromHex(java.lang.String hex) |
static void |
DBDrop(HBaseClient client) |
static void |
DBMigration(HBaseClient client) |
org.apache.hadoop.hbase.client.Delete |
delete() |
static org.apache.hadoop.hbase.client.Delete |
delete(byte[] row) |
T |
delete(HBaseClient client) |
void |
drop(HBaseClient client) |
static java.util.Map<java.lang.String,Family> |
families(TableName tableName)
get
Family by method name, this is readonly map |
static org.apache.hadoop.hbase.client.Get |
get(byte[] row) |
static java.lang.String |
hexValue(byte[] value) |
boolean |
isEmpty() |
static java.lang.Long |
longValue(byte[] bytes) |
void |
migrate(HBaseClient client) |
static java.lang.Class<? extends HTableModel> |
modelType(TableName tableName) |
static <R extends HTableModel> |
newWrappedModel(TableName tableName,
org.apache.hadoop.hbase.client.Result result) |
T |
orThen(ModelCallbackTask<T> task)
When this instance is Operation result and the result is Empty, then do
|
org.apache.hadoop.hbase.client.Put |
put(byte[] row) |
T |
put(HBaseClient client) |
static java.util.Map<java.lang.String,Qualifier> |
qualifiers(TableName tableName)
get
Qualifier by method name, this is readonly map |
protected byte[] |
retrieveValue() |
java.lang.Long |
row_updated_time() |
T |
row_updated_time(long updated_time) |
byte[] |
row() |
protected T |
setValue(long longValue) |
protected T |
setValue(java.lang.String string) |
static java.lang.String |
stringValue(byte[] bytes) |
TableName |
tableName() |
static TableName |
tableName(java.lang.Class<? extends HTableModel> type) |
T |
then(ModelCallbackTask<T> task)
do after previous operation
|
protected static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER
public static final java.util.Map<java.lang.String,Qualifier> qualifiers(TableName tableName)
Qualifier by method name, this is readonly maptableName - public static final java.util.Map<java.lang.String,Family> families(TableName tableName)
Family by method name, this is readonly maptableName - public static final TableName tableName(java.lang.Class<? extends HTableModel> type)
public static final java.lang.Class<? extends HTableModel> modelType(TableName tableName)
public static final <R extends HTableModel> R newWrappedModel(TableName tableName, org.apache.hadoop.hbase.client.Result result)
public static final void DBDrop(HBaseClient client)
public void drop(HBaseClient client)
public TableName tableName()
public static final void DBMigration(HBaseClient client)
public void migrate(HBaseClient client)
public static org.apache.hadoop.hbase.client.Get get(byte[] row)
public static org.apache.hadoop.hbase.client.Delete delete(byte[] row)
public static final byte[] byteValueFromHex(java.lang.String hex)
public static final java.lang.String hexValue(byte[] value)
public T put(HBaseClient client)
public org.apache.hadoop.hbase.client.Put put(byte[] row)
@Family(family="d") @Qualifier(qualifier="rowudt", description="row-updated-time") public T row_updated_time(long updated_time)
protected final T setValue(long longValue)
public static final java.lang.String stringValue(byte[] bytes)
public static final byte[] byteValue(java.lang.Object object)
public T orThen(ModelCallbackTask<T> task)
task - callback taskpublic boolean isEmpty()
public T then(ModelCallbackTask<T> task)
task - public T delete(HBaseClient client)
public org.apache.hadoop.hbase.client.Delete delete()
public final byte[] row()
protected final T setValue(java.lang.String string)
public java.lang.Long row_updated_time()
public static final java.lang.Long longValue(byte[] bytes)
protected final byte[] retrieveValue()