Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorEqual(err1, err2 error) bool
- func ErrorNotEqual(err1, err2 error) bool
- func NewRegionSpecifier(regionName string) *proto.RegionSpecifier
- 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) error
- func (c *ColumnCoordinate) String() string
- func (c *ColumnCoordinate) Write(w io.Writer) error
- type ColumnFamilyDescriptor
- type CoprocessorServiceCall
- type Delete
- func (d *Delete) AddColumn(family, qual []byte) *Delete
- func (d *Delete) AddColumnWithTimestamp(family, qual []byte, ts uint64) *Delete
- func (d *Delete) AddFamily(family []byte) *Delete
- func (d *Delete) AddString(famqual string) error
- func (d *Delete) AddStringColumn(family, qual string) *Delete
- func (d *Delete) AddStringFamily(family string) *Delete
- func (d *Delete) GetRow() []byte
- func (d *Delete) ToProto() pb.Message
- type Get
- func (g *Get) AddColumn(family, qual []byte) *Get
- func (g *Get) AddFamily(family []byte) *Get
- func (g *Get) AddString(famqual string) error
- func (g *Get) AddStringColumn(family, qual string) *Get
- func (g *Get) AddStringFamily(family string) *Get
- func (g *Get) AddTimeRange(from uint64, to uint64) *Get
- func (g *Get) GetRow() []byte
- func (g *Get) SetMaxVersion(maxVersion int32) *Get
- 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) AddTimeRange(from uint64, to uint64)
- func (s *Scan) Close() error
- func (s *Scan) Closed() bool
- func (s *Scan) CreateGetFromScan(row []byte) *Get
- func (s *Scan) Next() *ResultRow
- type ServiceType
- type TableDescriptor
- type TableName
- type Type
Constants ¶
View Source
const ( MasterMonitorService = iota + 1 MasterService MasterAdminService AdminService ClientService RegionServerStatusService )
Variables ¶
View Source
var ServiceString = map[ServiceType]string{ MasterMonitorService: "MasterMonitorService", MasterService: "MasterService", MasterAdminService: "MasterAdminService", AdminService: "AdminService", ClientService: "ClientService", RegionServerStatusService: "RegionServerStatusService", }
convert above const to protobuf string
Functions ¶
func ErrorEqual ¶
TODO: The following functions can be moved later. ErrorEqual returns a boolean indicating whether err1 is equal to err2.
func ErrorNotEqual ¶
ErrorNotEqual returns a boolean indicating whether err1 isn't equal to err2.
func NewRegionSpecifier ¶
func NewRegionSpecifier(regionName string) *proto.RegionSpecifier
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) error
func (*ColumnCoordinate) String ¶
func (c *ColumnCoordinate) String() string
type ColumnFamilyDescriptor ¶
type ColumnFamilyDescriptor struct {
// contains filtered or unexported fields
}
func NewColumnFamilyDescriptor ¶
func NewColumnFamilyDescriptor(name string) *ColumnFamilyDescriptor
Themis will use VERSIONS=1 for some hook.
func (*ColumnFamilyDescriptor) AddAttr ¶
func (c *ColumnFamilyDescriptor) AddAttr(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) SetMaxVersion ¶
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, error) DropTable(t string) error DisableTable(t string) error EnableTable(t string) error CreateTable(t *TableDescriptor, splits [][]byte) error ServiceCall(table string, call *CoprocessorServiceCall) (*proto.CoprocessorServiceResponse, error) LocateRegion(table, row []byte, useCache bool) (*RegionInfo, error) GetRegions(table []byte, useCache bool) ([]*RegionInfo, error) Split(tblOrRegion, splitPoint string) error CleanRegionCache(table []byte) CleanAllRegionCache() Close() error }
export client interface
type Kv ¶
type Put ¶
type Put struct { Row []byte Families [][]byte Qualifiers [][][]byte Values [][][]byte Timestamp uint64 }
func (*Put) AddStringValue ¶
func (*Put) AddTimestamp ¶
type RegionInfo ¶
type ResultRow ¶
func NewResultRow ¶
type Scan ¶
type Scan struct { // row key StartRow []byte StopRow []byte MaxVersions uint32 TsRangeFrom uint64 TsRangeTo uint64 // contains filtered or unexported fields }
func (*Scan) AddStringColumn ¶
func (*Scan) AddStringFamily ¶
func (*Scan) AddTimeRange ¶
func (*Scan) CreateGetFromScan ¶
type ServiceType ¶
type ServiceType byte
type TableDescriptor ¶
type TableDescriptor struct {
// contains filtered or unexported fields
}
func NewTableDesciptor ¶
func NewTableDesciptor(tblName string) *TableDescriptor
func (*TableDescriptor) AddAddr ¶
func (c *TableDescriptor) AddAddr(attrName string, val string)
func (*TableDescriptor) AddColumnDesc ¶
func (t *TableDescriptor) AddColumnDesc(cf *ColumnFamilyDescriptor)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.