Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Append(table, rowkey string, values map[string]map[string][]byte) (*pb.MutateResponse, error)
- func (c *Client) AppendWithDeadline(table, rowkey string, values map[string]map[string][]byte, deadline *time.Time) (*pb.MutateResponse, error)
- func (c *Client) CheckTable(table string) (*pb.GetResponse, error)
- func (c *Client) Delete(table, rowkey string, values map[string]map[string][]byte) (*pb.MutateResponse, error)
- func (c *Client) DeleteWithDeadline(table, rowkey string, values map[string]map[string][]byte, deadline *time.Time) (*pb.MutateResponse, error)
- func (c *Client) Get(table, rowkey string, families map[string][]string) (*pb.GetResponse, error)
- func (c *Client) GetWithDeadline(table string, rowkey string, families map[string][]string, deadline *time.Time) (*pb.GetResponse, error)
- func (c *Client) Increment(table, rowkey string, values map[string]map[string][]byte) (*pb.MutateResponse, error)
- func (c *Client) IncrementWithDeadline(table, rowkey string, values map[string]map[string][]byte, deadline *time.Time) (*pb.MutateResponse, error)
- func (c *Client) Put(table string, rowkey string, values map[string]map[string][]byte) (*pb.MutateResponse, error)
- func (c *Client) PutWithDeadline(table string, rowkey string, values map[string]map[string][]byte, ...) (*pb.MutateResponse, error)
- func (c *Client) Scan(table string, families map[string][]string, startRow, stopRow []byte) (*pb.ScanResponse, error)
- func (c *Client) ScanWithDeadline(table string, families map[string][]string, startRow, stopRow []byte, ...) (*pb.ScanResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDeadline is returned when the deadline of a request has been exceeded ErrDeadline = fmt.Errorf("deadline exceeded") )
Constants
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client provides access to an HBase cluster.
func (*Client) Append ¶
func (c *Client) Append(table, rowkey string, values map[string]map[string][]byte) (*pb.MutateResponse, error)
Append atomically appends all the given values to their current values in HBase.
func (*Client) AppendWithDeadline ¶
func (*Client) CheckTable ¶
func (c *Client) CheckTable(table string) (*pb.GetResponse, error)
CheckTable returns an error if the given table name doesn't exist.
func (*Client) Delete ¶
func (c *Client) Delete(table, rowkey string, values map[string]map[string][]byte) (*pb.MutateResponse, error)
Delete removes values from the given row of the table.
func (*Client) DeleteWithDeadline ¶
func (*Client) GetWithDeadline ¶
func (*Client) Increment ¶
func (c *Client) Increment(table, rowkey string, values map[string]map[string][]byte) (*pb.MutateResponse, error)
Increment atomically increments the given values in HBase.
func (*Client) IncrementWithDeadline ¶
func (*Client) Put ¶
func (c *Client) Put(table string, rowkey string, values map[string]map[string][]byte) (*pb.MutateResponse, error)
Put inserts or updates the values into the given row of the table.
func (*Client) PutWithDeadline ¶
Click to show internal directories.
Click to hide internal directories.
