Documentation
¶
Index ¶
- Constants
- type BytesSlice
- type Column
- type ColumnCoordinate
- func (c *ColumnCoordinate) Equal(a *ColumnCoordinate) bool
- func (c *ColumnCoordinate) GetColumn() *Column
- func (c *ColumnCoordinate) ParseField(b iohelper.ByteMultiReader) error
- func (c *ColumnCoordinate) ParseFromString(s string)
- func (c *ColumnCoordinate) String() string
- func (c *ColumnCoordinate) Write(w io.Writer)
- type ColumnFamilyDescriptor
- type CoprocessorServiceCall
- type Delete
- func (d *Delete) AddColumn(family, qual []byte)
- func (d *Delete) AddColumnWithTimestamp(family, qual []byte, ts uint64)
- func (d *Delete) AddFamily(family []byte)
- func (d *Delete) AddString(famqual string) error
- func (d *Delete) AddStringColumn(family, qual string)
- func (d *Delete) AddStringFamily(family string)
- func (d *Delete) GetRow() []byte
- func (d *Delete) ToProto() pb.Message
- type Get
- func (g *Get) AddColumn(family, qual []byte)
- func (g *Get) AddFamily(family []byte)
- func (g *Get) AddString(famqual string) error
- func (g *Get) AddStringColumn(family, qual string)
- func (g *Get) AddStringFamily(family string)
- func (g *Get) AddTimeRange(from uint64, to uint64)
- func (g *Get) GetRow() []byte
- func (g *Get) ToProto() pb.Message
- type HBaseClient
- type Kv
- type Put
- type RegionInfo
- type ResultRow
- type Scan
- func (s *Scan) AddAttr(name string, val []byte)
- func (s *Scan) AddColumn(family, qual []byte)
- func (s *Scan) AddFamily(family []byte)
- func (s *Scan) AddStringColumn(family, qual string)
- func (s *Scan) AddStringFamily(family string)
- func (s *Scan) Close()
- func (s *Scan) Closed() bool
- func (s *Scan) CreateGetFromScan(row []byte) *Get
- func (s *Scan) Next() *ResultRow
- type TableDescriptor
- type TableName
- type Type
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesSlice ¶
type BytesSlice [][]byte
func (BytesSlice) Len ¶
func (s BytesSlice) Len() int
func (BytesSlice) Less ¶
func (s BytesSlice) Less(i, j int) bool
func (BytesSlice) Swap ¶
func (s BytesSlice) Swap(i, j int)
type Column ¶
func (*Column) ParseFromString ¶
type ColumnCoordinate ¶
func NewColumnCoordinate ¶
func NewColumnCoordinate(table, row, family, qual []byte) *ColumnCoordinate
func (*ColumnCoordinate) Equal ¶
func (c *ColumnCoordinate) Equal(a *ColumnCoordinate) bool
func (*ColumnCoordinate) GetColumn ¶
func (c *ColumnCoordinate) GetColumn() *Column
func (*ColumnCoordinate) ParseField ¶
func (c *ColumnCoordinate) ParseField(b iohelper.ByteMultiReader) error
func (*ColumnCoordinate) ParseFromString ¶
func (c *ColumnCoordinate) ParseFromString(s string)
func (*ColumnCoordinate) String ¶
func (c *ColumnCoordinate) String() string
func (*ColumnCoordinate) Write ¶
func (c *ColumnCoordinate) Write(w io.Writer)
type ColumnFamilyDescriptor ¶
type ColumnFamilyDescriptor struct {
// contains filtered or unexported fields
}
func NewColumnFamilyDescriptor ¶
func NewColumnFamilyDescriptor(name string) *ColumnFamilyDescriptor
func (*ColumnFamilyDescriptor) AddAttr ¶
func (c *ColumnFamilyDescriptor) AddAttr(attrName string, val []byte)
func (*ColumnFamilyDescriptor) AddStrAddr ¶
func (c *ColumnFamilyDescriptor) AddStrAddr(attrName string, val string)
type CoprocessorServiceCall ¶
type CoprocessorServiceCall struct { Row []byte ServiceName string MethodName string RequestParam []byte }
func (*CoprocessorServiceCall) ToProto ¶
func (c *CoprocessorServiceCall) ToProto() pb.Message
type Delete ¶
func (*Delete) AddColumnWithTimestamp ¶
func (*Delete) AddStringColumn ¶
func (*Delete) AddStringFamily ¶
type Get ¶
type Get struct { Row []byte Families set FamilyQuals map[string]set Versions int32 TsRangeFrom uint64 TsRangeTo uint64 }
func (*Get) AddStringColumn ¶
func (*Get) AddStringFamily ¶
func (*Get) AddTimeRange ¶
type HBaseClient ¶
type HBaseClient interface { Get(tbl string, g *Get) (*ResultRow, error) Put(tbl string, p *Put) (bool, error) Delete(tbl string, d *Delete) (bool, error) TableExists(tbl string) bool DropTable(t TableName) error DisableTable(t TableName) error CreateTable(t *TableDescriptor, splits [][]byte) error ServiceCall(table string, call *CoprocessorServiceCall) (*proto.CoprocessorServiceResponse, error) LocateRegion(table, row []byte, useCache bool) *RegionInfo Close() error }
export client interface
type Put ¶
func (*Put) AddStringValue ¶
type RegionInfo ¶
type ResultRow ¶
func NewResultRow ¶
type Scan ¶
type Scan struct { StartRow []byte StopRow []byte MaxVersions uint32 TsRangeFrom uint64 TsRangeTo uint64 // contains filtered or unexported fields }
func (*Scan) AddStringColumn ¶
func (*Scan) AddStringFamily ¶
func (*Scan) CreateGetFromScan ¶
type TableDescriptor ¶
type TableDescriptor struct {
// contains filtered or unexported fields
}
func NewTableDesciptor ¶
func NewTableDesciptor(tblName TableName) *TableDescriptor
func (*TableDescriptor) AddColumnDesc ¶
func (t *TableDescriptor) AddColumnDesc(cf *ColumnFamilyDescriptor)
func (*TableDescriptor) AddStrAddr ¶
func (c *TableDescriptor) AddStrAddr(attrName string, val string)
type TableName ¶
type TableName struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.