hbase

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilContext = fmt.Errorf("nil context")
	ErrNilTable   = fmt.Errorf("nil table")
)

Functions

func Close

func Close() error

func InitClient

func InitClient(opts ...Option) error

Types

type Client

type Client interface {
	Context(context.Context) Client
	Table(table string) Client
	Key(key string) Client
	Family(family string) Client
	Qualifier(qualifier string) Client
	Amount(amount int64) Client
	Range(startRow, stopRow string) Client
	Values(values map[string]map[string][]byte) Client
	ExpectedValue(expectedValue []byte) Client
	Options(opts ...func(hrpc.Call) error) Client

	Scan() Result
	Get() Result
	Put() Result
	Delete() Result
	Append() Result
	Increment() Result
	CheckAndPut() Result
	Close()
}

func GetClient

func GetClient() Client

func NewClient

func NewClient(opts ...Option) Client

type Option

type Option func(*option)

func Addr

func Addr(addr string) Option

func WithConfig

func WithConfig(cfg *configv1.HBase) Option

type Result

type Result interface {
	Scanner() hrpc.Scanner
	Result() *hrpc.Result
	Int64() int64
	Bool() bool
	Err() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL