Documentation
¶
Index ¶
- Constants
- func FinalizeJoinMapMessage(mb *MessageBoard, tag int32, isShuffle bool, shuffleIdx int32, ...)
- func FinalizeRuntimeFilter(m *plan.RuntimeFilterSpec, sendSucceed bool, mb *MessageBoard)
- func MatchAddress(m Message, raddr *MessageAddress) bool
- func SendMessage(m Message, mb *MessageBoard)
- func SendRuntimeFilter(rt RuntimeFilterMessage, m *plan.RuntimeFilterSpec, mb *MessageBoard)
- type GroupSels
- func (sels *GroupSels) Finalize(groupCount int, inputRowCount int, mp *mpool.MPool) error
- func (sels *GroupSels) Free(mp *mpool.MPool)
- func (sels *GroupSels) Get(k int32) []int32
- func (sels *GroupSels) Init(n int, mp *mpool.MPool) error
- func (sels *GroupSels) Insert(k, v int32)
- func (sels *GroupSels) Size() int64
- type JoinMap
- func (jm *JoinMap) Free()
- func (jm *JoinMap) FreeMemory()
- func (jm *JoinMap) GetBatches() []*batch.Batch
- func (jm *JoinMap) GetGroupCount() uint64
- func (jm *JoinMap) GetRefCount() int64
- func (jm *JoinMap) GetRowCount() int64
- func (jm *JoinMap) GetSels(k uint64) []int32
- func (jm *JoinMap) HashOnUnique() bool
- func (jm *JoinMap) IncRef(cnt int32)
- func (jm *JoinMap) IsDeleted(row uint64) bool
- func (jm *JoinMap) IsSpilled() bool
- func (jm *JoinMap) IsValid() bool
- func (jm *JoinMap) NewIterator() hashmap.Iterator
- func (jm *JoinMap) PreAlloc(n uint64) error
- func (jm *JoinMap) PushedRuntimeFilterIn() bool
- func (jm *JoinMap) SetPushedRuntimeFilterIn(b bool)
- func (jm *JoinMap) SetRowCount(cnt int64)
- func (jm *JoinMap) Size() int64
- func (jm *JoinMap) TakeSpillBuildFds() []*os.File
- type JoinMapMsg
- type Message
- type MessageAddress
- type MessageBoard
- type MessageCenter
- type MessageReceiver
- type MsgType
- type RuntimeFilterMessage
- func (rt RuntimeFilterMessage) DebugString() string
- func (rt RuntimeFilterMessage) Deserialize([]byte) Message
- func (rt RuntimeFilterMessage) Destroy()
- func (rt RuntimeFilterMessage) GetMsgTag() int32
- func (rt RuntimeFilterMessage) GetReceiverAddr() MessageAddress
- func (rt RuntimeFilterMessage) NeedBlock() bool
- func (rt RuntimeFilterMessage) Serialize() []byte
- type TopValueMessage
- func (t TopValueMessage) DebugString() string
- func (t TopValueMessage) Deserialize([]byte) Message
- func (t TopValueMessage) Destroy()
- func (t TopValueMessage) GetMsgTag() int32
- func (t TopValueMessage) GetReceiverAddr() MessageAddress
- func (t TopValueMessage) NeedBlock() bool
- func (t TopValueMessage) Serialize() []byte
Constants ¶
View Source
const ( RuntimeFilter_IN = 0 RuntimeFilter_BITMAP = 1 RuntimeFilter_MIN_MAX = 2 RuntimeFilter_BINARY_FUSE = 3 RuntimeFilter_UNIQUEJOINKEYS = 4 RuntimeFilter_PASS = 100 RuntimeFilter_DROP = 101 )
View Source
const ALLCN = "ALLCN"
View Source
const CURRENTCN = "CURRENTCN"
Variables ¶
This section is empty.
Functions ¶
func FinalizeJoinMapMessage ¶
func FinalizeJoinMapMessage(mb *MessageBoard, tag int32, isShuffle bool, shuffleIdx int32, sendMapSucceed bool)
func FinalizeRuntimeFilter ¶
func FinalizeRuntimeFilter(m *plan.RuntimeFilterSpec, sendSucceed bool, mb *MessageBoard)
func MatchAddress ¶
func MatchAddress(m Message, raddr *MessageAddress) bool
func SendMessage ¶
func SendMessage(m Message, mb *MessageBoard)
func SendRuntimeFilter ¶
func SendRuntimeFilter(rt RuntimeFilterMessage, m *plan.RuntimeFilterSpec, mb *MessageBoard)
Types ¶
type GroupSels ¶
type GroupSels struct {
// contains filtered or unexported fields
}
type JoinMap ¶
type JoinMap struct {
// spill support
Spilled bool
SpillBuildFds []*os.File // anonymous build-side file descriptors
// contains filtered or unexported fields
}
JoinMap is used for join
func NewJoinMap ¶
func ReceiveJoinMap ¶
func (*JoinMap) FreeMemory ¶
func (jm *JoinMap) FreeMemory()
func (*JoinMap) GetBatches ¶
func (*JoinMap) GetGroupCount ¶
func (*JoinMap) GetRefCount ¶
func (*JoinMap) GetRowCount ¶
func (*JoinMap) HashOnUnique ¶
func (*JoinMap) NewIterator ¶
func (*JoinMap) PushedRuntimeFilterIn ¶
func (*JoinMap) SetPushedRuntimeFilterIn ¶
func (*JoinMap) SetRowCount ¶
func (*JoinMap) TakeSpillBuildFds ¶
TakeSpillBuildFds transfers ownership of anonymous build-side file descriptors from the JoinMap to the caller. After this call the JoinMap no longer owns the fds; FreeMemory will not close them.
type JoinMapMsg ¶
type JoinMapMsg struct {
JoinMapPtr *JoinMap
IsShuffle bool
ShuffleIdx int32
Tag int32
Spilled bool
}
func (JoinMapMsg) DebugString ¶
func (t JoinMapMsg) DebugString() string
func (JoinMapMsg) Deserialize ¶
func (t JoinMapMsg) Deserialize([]byte) Message
func (JoinMapMsg) Destroy ¶
func (t JoinMapMsg) Destroy()
func (JoinMapMsg) GetMsgTag ¶
func (t JoinMapMsg) GetMsgTag() int32
func (JoinMapMsg) GetReceiverAddr ¶
func (t JoinMapMsg) GetReceiverAddr() MessageAddress
func (JoinMapMsg) NeedBlock ¶
func (t JoinMapMsg) NeedBlock() bool
func (JoinMapMsg) Serialize ¶
func (t JoinMapMsg) Serialize() []byte
type MessageAddress ¶
func AddrBroadCastOnALLCN ¶
func AddrBroadCastOnALLCN() MessageAddress
func AddrBroadCastOnCurrentCN ¶
func AddrBroadCastOnCurrentCN() MessageAddress
type MessageBoard ¶
type MessageBoard struct {
// contains filtered or unexported fields
}
func NewMessageBoard ¶
func NewMessageBoard() *MessageBoard
func (*MessageBoard) BeforeRunonce ¶
func (m *MessageBoard) BeforeRunonce()
func (*MessageBoard) DebugString ¶
func (m *MessageBoard) DebugString() string
func (*MessageBoard) Reset ¶
func (m *MessageBoard) Reset() *MessageBoard
func (*MessageBoard) SetMultiCN ¶
func (m *MessageBoard) SetMultiCN(center *MessageCenter, stmtId uuid.UUID) *MessageBoard
type MessageCenter ¶
type MessageCenter struct {
StmtIDToBoard map[uuid.UUID]*MessageBoard
RwMutex *sync.Mutex
}
type MessageReceiver ¶
type MessageReceiver struct {
// contains filtered or unexported fields
}
func NewMessageReceiver ¶
func NewMessageReceiver(tags []int32, addr MessageAddress, mb *MessageBoard) *MessageReceiver
func (*MessageReceiver) ReceiveMessage ¶
type RuntimeFilterMessage ¶
func (RuntimeFilterMessage) DebugString ¶
func (rt RuntimeFilterMessage) DebugString() string
func (RuntimeFilterMessage) Deserialize ¶
func (rt RuntimeFilterMessage) Deserialize([]byte) Message
func (RuntimeFilterMessage) Destroy ¶
func (rt RuntimeFilterMessage) Destroy()
func (RuntimeFilterMessage) GetMsgTag ¶
func (rt RuntimeFilterMessage) GetMsgTag() int32
func (RuntimeFilterMessage) GetReceiverAddr ¶
func (rt RuntimeFilterMessage) GetReceiverAddr() MessageAddress
func (RuntimeFilterMessage) NeedBlock ¶
func (rt RuntimeFilterMessage) NeedBlock() bool
func (RuntimeFilterMessage) Serialize ¶
func (rt RuntimeFilterMessage) Serialize() []byte
type TopValueMessage ¶
func (TopValueMessage) DebugString ¶
func (t TopValueMessage) DebugString() string
func (TopValueMessage) Deserialize ¶
func (t TopValueMessage) Deserialize([]byte) Message
func (TopValueMessage) Destroy ¶
func (t TopValueMessage) Destroy()
func (TopValueMessage) GetMsgTag ¶
func (t TopValueMessage) GetMsgTag() int32
func (TopValueMessage) GetReceiverAddr ¶
func (t TopValueMessage) GetReceiverAddr() MessageAddress
func (TopValueMessage) NeedBlock ¶
func (t TopValueMessage) NeedBlock() bool
func (TopValueMessage) Serialize ¶
func (t TopValueMessage) Serialize() []byte
Click to show internal directories.
Click to hide internal directories.