Documentation ¶
Index ¶
- Constants
- type Column
- type Conf
- type DB
- func (h *DB) BatchSet(ctx context.Context, rows interface{}, selects []Column) *DB
- func (h *DB) Delete(ctx context.Context, model interface{}, rowkey string) *DB
- func (h *DB) DeleteAll(ctx context.Context, model interface{}) *DB
- func (h *DB) Find(ctx context.Context, list interface{}, startRow, stopRow string, ...) *DB
- func (h *DB) Get(ctx context.Context, model interface{}, rowkey string) *DB
- func (h *DB) Set(ctx context.Context, model interface{}, selects []Column) *DB
- type Filter
- type Model
- type Table
Constants ¶
View Source
const ( HBaseTagHint string = "horm" ModelName string = "Model" RowName string = "Rowkey" BatchResultSize int32 = 1 << 6 // todo: selft-customized batchResultSize, default set to be 64KB (assume 1KB bytes per row) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB represent a HBase database
func NewDB ¶
func NewDB(client *hbase.THBaseServiceClient, conf *Conf) *DB
create a new hbase database from thrift client
func NewHBaseWithCodec ¶
NewHBase create a new HBase DB
func (*DB) Find ¶
func (h *DB) Find(ctx context.Context, list interface{}, startRow, stopRow string, selects []Column, filter *Filter) *DB
HBase rows range query
Click to show internal directories.
Click to hide internal directories.