adaptor

package
v0.0.0-...-572c485 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeToMQWrapperID

func DeserializeToMQWrapperID(msgID []byte, walName string) (common.MessageID, error)

DeserializeToMQWrapperID deserializes messageID bytes to common.MessageID TODO: should be removed in future after common.MessageID is removed

func MustGetCommonpbMsgTypeFromMessageType

func MustGetCommonpbMsgTypeFromMessageType(t message.MessageType) commonpb.MsgType

MustGetCommonpbMsgTypeFromMessageType returns the commonpb.MsgType from message.MessageType.

func MustGetMQWrapperIDFromMessage

func MustGetMQWrapperIDFromMessage(messageID message.MessageID) common.MessageID

MustGetMQWrapperIDFromMessage converts message.MessageID to common.MessageID TODO: should be removed in future after common.MessageID is removed

func MustGetMessageIDFromMQWrapperID

func MustGetMessageIDFromMQWrapperID(commonMessageID common.MessageID) message.MessageID

MustGetMessageIDFromMQWrapperID converts common.MessageID to message.MessageID TODO: should be removed in future after common.MessageID is removed

func NewFlushMessageBody

func NewFlushMessageBody(msg message.ImmutableMessage) (msgstream.TsMsg, error)

func NewMsgPackFromMessage

func NewMsgPackFromMessage(msgs ...message.ImmutableMessage) (*msgstream.MsgPack, error)

FromMessageToMsgPack converts message to msgpack. Same TimeTick must be sent with same msgpack. !!! Msgs must be keep same time tick. TODO: remove this function after remove the msgstream implementation.

Types

type FlushMessageBody

type FlushMessageBody struct {
	*message.FlushMessageBody
	// contains filtered or unexported fields
}

func (FlushMessageBody) ID

func (t FlushMessageBody) ID() msgstream.UniqueID

func (FlushMessageBody) Marshal

func (t FlushMessageBody) Marshal(msgstream.TsMsg) (msgstream.MarshalType, error)

func (FlushMessageBody) SetID

func (t FlushMessageBody) SetID(id msgstream.UniqueID)

func (FlushMessageBody) SetTs

func (t FlushMessageBody) SetTs(ts uint64)

func (FlushMessageBody) Size

func (t FlushMessageBody) Size() int

func (FlushMessageBody) SourceID

func (t FlushMessageBody) SourceID() int64

func (FlushMessageBody) Type

func (t FlushMessageBody) Type() commonpb.MsgType

func (FlushMessageBody) Unmarshal

func (t FlushMessageBody) Unmarshal(msgstream.MarshalType) (msgstream.TsMsg, error)

Jump to

Keyboard shortcuts

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