hbaseutil

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteBigEndianToUint64

func ByteBigEndianToUint64(value []byte, rv reflect.Value, fieldname string) (result uint64, err error)

ByteBigEndianToUint64 convert big endian to uint64

func StringToUint

func StringToUint(value []byte, rv reflect.Value, fieldname string) (result uint64, err error)

StringToUint parse string to uint

Types

type ParseIntFunc

type ParseIntFunc func(v []byte, rv reflect.Value, fieldname string) (result uint64, err error)

ParseIntFunc function to parse []byte to uint64 if not set, will assume []byte is big endian form of integer, length of 1/2/4/8 bytes

type Parser

type Parser struct {
	ParseIntFunc ParseIntFunc
}

Parser parser for hbase cell

func (*Parser) Parse

func (p *Parser) Parse(cell []*hrpc.Cell, ptr interface{}) (err error)

Parse parse cell to struct supported type:

integer from 16 ~ 64 bit, the cell's value must be big endian form of the integer, length could be 2 or 4 or 8 bytes
string

Jump to

Keyboard shortcuts

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