Documentation ¶
Index ¶
Constants ¶
View Source
const ( StandardClient = iota AdminClient )
Variables ¶
View Source
var ( // ErrDeadline is returned when the deadline of a request has been exceeded ErrDeadline = errors.New("deadline exceeded") // TableNotFound is returned when attempting to access a table that // doesn't exist on this cluster. TableNotFound = errors.New("table not found") )
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) CheckTable ¶
CheckTable returns an error if the given table name doesn't exist.
type Option ¶
type Option func(*Client)
func FlushInterval ¶
FlushInterval will return an option that will set the timeout for flushing the RPC queues used in a given client
func RpcQueueSize ¶
RpcQueueSize will return an option that will set the size of the RPC queues used in a given client
func SetMaster ¶
func SetMaster(master zk.ResourceName) Option
Options for specifying master resource name (e.g. "/hbase/master")
func SetMeta ¶
func SetMeta(meta zk.ResourceName) Option
Options for specifying meta resource name (e.g. "/hbase/meta-region-server")
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package pb is a generated protocol buffer package.
|
Package pb is a generated protocol buffer package. |
Package regioninfo contains data structures to represent HBase regions.
|
Package regioninfo contains data structures to represent HBase regions. |
Package zk encapsulates our interactions with ZooKeeper.
|
Package zk encapsulates our interactions with ZooKeeper. |
Click to show internal directories.
Click to hide internal directories.