pointsdecoder

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutDecoderWork

func PutDecoderWork(ww *DecoderWork)

Types

type DecoderWork

type DecoderWork struct {
	// contains filtered or unexported fields
}

func GetDecoderWork

func GetDecoderWork() *DecoderWork

func (*DecoderWork) DecodeDBPT

func (ww *DecoderWork) DecodeDBPT() (db string, rp string, ptId uint32, tail []byte, err error)

DecodeDBPT decodes the data for [db, rp, ptId]

func (*DecoderWork) DecodePoints

func (ww *DecoderWork) DecodePoints() (db string, rp string, ptId uint32, shard uint64, streamShardIdList []uint64, binaryRows []byte, err error)

DecodePoints decodes the network data reqBuf to Points. DecoderWork is a reuse object.

func (*DecoderWork) DecodeShardAndRows

func (ww *DecoderWork) DecodeShardAndRows(db string, rp string, ptId uint32, tail []byte) (shard uint64, streamShardIdList []uint64, binaryRows []byte, err error)

DecodeShardAndRows decodes the tail from [shardId] to [...rows]

func (*DecoderWork) GetLogger

func (ww *DecoderWork) GetLogger() *logger.Logger

func (*DecoderWork) GetRows

func (ww *DecoderWork) GetRows() []influx.Row

func (*DecoderWork) PutWritePointsWork

func (ww *DecoderWork) PutWritePointsWork()

func (*DecoderWork) SetReqBuf

func (ww *DecoderWork) SetReqBuf(buff []byte)

func (*DecoderWork) SetRows

func (ww *DecoderWork) SetRows(rows []influx.Row)

func (*DecoderWork) SetStreamVars

func (ww *DecoderWork) SetStreamVars(vars []*netstorage.StreamVar)

Jump to

Keyboard shortcuts

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