Documentation ¶
Index ¶
- type Client
- func (c *Client) AsyncGets(table string, results chan *ResultRow, gets []*Get)
- func (c *Client) Delete(table string, del *Delete) (bool, error)
- func (c *Client) Deletes(table string, dels []*Delete) (bool, error)
- func (c *Client) Get(table string, get *Get) (*ResultRow, error)
- func (c *Client) GetTables() []TableInfo
- func (c *Client) Gets(table string, gets []*Get) ([]*ResultRow, error)
- func (c *Client) Put(table string, put *Put) (bool, error)
- func (c *Client) Puts(table string, puts []*Put) (bool, error)
- func (c *Client) Scan(table string) *Scan
- func (c *Client) SetLogLevel(level string)
- type Delete
- type EncodedValue
- type Get
- type Put
- type ResultRow
- type ResultRowColumn
- type Scan
- func (s *Scan) AddColumn(family, qual []byte)
- func (s *Scan) AddFamily(family []byte)
- func (s *Scan) AddString(famqual string) error
- func (s *Scan) AddStringColumn(family, qual string)
- func (s *Scan) AddStringFamily(family string)
- func (s *Scan) Close()
- func (s *Scan) Map(f func(*ResultRow))
- func (s *Scan) SetCached(n int)
- func (s *Scan) SetTimeRange(from time.Time, to time.Time)
- func (s *Scan) SetTimeRangeFrom(from time.Time)
- func (s *Scan) SetTimeRangeTo(to time.Time)
- type TableInfo
- type TimeRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SetLogLevel ¶
type Delete ¶
type Delete struct {
// contains filtered or unexported fields
}
func CreateNewDelete ¶
func (*Delete) AddStringColumn ¶
func (*Delete) AddStringFamily ¶
type EncodedValue ¶
type EncodedValue []byte
func (EncodedValue) String ¶
func (e EncodedValue) String() string
type Get ¶
type Get struct {
// contains filtered or unexported fields
}
func CreateNewGet ¶
func (*Get) AddStringColumn ¶
func (*Get) AddStringFamily ¶
type Put ¶
type Put struct {
// contains filtered or unexported fields
}
func CreateNewPut ¶
func (*Put) AddStringValue ¶
func (*Put) AddStringValueTS ¶
AddStringValueTS use user specified timestamp
func (*Put) AddValueTS ¶
AddValueTS use user specified timestamp
type ResultRow ¶
type ResultRow struct { Row EncodedValue Columns map[string]*ResultRowColumn SortedColumns []*ResultRowColumn }
type ResultRowColumn ¶
type ResultRowColumn struct { ColumnName string Family EncodedValue Qualifier EncodedValue Timestamp time.Time Value EncodedValue Values map[time.Time]EncodedValue }
type Scan ¶
func (*Scan) AddStringColumn ¶
func (*Scan) AddStringFamily ¶
func (*Scan) SetTimeRange ¶
set scan time range
func (*Scan) SetTimeRangeFrom ¶
set scan time start only. if set start only, use a max timestamp as end automaticly. but since max timestamp is not a precise value, you'd better use `SetTimeRange()` set start and end yourself.
func (*Scan) SetTimeRangeTo ¶
set scan time end only. if only set end, use time.Unix(0, 0)(Jan 1st, 1970) as start automaticly
Source Files ¶
Click to show internal directories.
Click to hide internal directories.