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(long longValue) |
static byte[] |
byteValue(java.lang.String string) |
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) |
void |
drop(HBaseClient client) |
static org.apache.hadoop.hbase.client.Get |
get(byte[] row) |
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) |
org.apache.hadoop.hbase.client.Put |
put(byte[] row) |
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) |
protected static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER
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 boolean isEmpty()
public org.apache.hadoop.hbase.client.Put put(byte[] row)
public static final byte[] byteValue(java.lang.String string)
@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(long longValue)
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()