util

package
v0.0.0-...-90d5307 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package util util methods

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTable

func CreateTable(client *hbase.THBaseServiceClient, tableName string, columns []string) error

CreateTable create table

func IsTableExists

func IsTableExists(client *hbase.THBaseServiceClient, tableName string) (bool, error)

IsTableExists check if table exists

func Put

func Put(client *hbase.THBaseServiceClient, tableName string,
	rowKey string, family string, qualifier string, value string) error

Put put a row to table

Types

type HBValue

type HBValue struct {
	RowKey    string
	Family    string
	Qualifier string
	Type      int8
	Value     string
}

HBValue hbase value

func DecodeHbaseTColumnValue

func DecodeHbaseTColumnValue(rowkey string, tv *hbase.TColumnValue) (*HBValue, error)

func NewHBValue

func NewHBValue() *HBValue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL