You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
376 B
24 lines
376 B
package hbaseHandle
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/tsuna/gohbase/hrpc"
|
|
)
|
|
|
|
func (c *HBaseClient) RmByRowKey(table string, rowKey string) error {
|
|
rmReq, err := hrpc.NewDelStr(
|
|
context.Background(),
|
|
table, rowKey, make(map[string]map[string][]byte),
|
|
)
|
|
|
|
if err != nil {
|
|
return nil
|
|
}
|
|
|
|
if _, err := c.Client.Delete(rmReq); err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|