Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Window ¶
type Window interface {
// Start is the left position of the window.
Start() uint
// Size is the size of the window.
Size() uint
// Count is total count of events happened in the window.
Count() uint
// Len is the length of bitset.
Len() uint
// AddCount increments the accumulated count by n.
AddCount(n uint)
// IsFinished returns streaming window execution status.
IsFinished() bool
// WindowStatus describe the window status.
Status() *WindowStatus
}
Window the p2p streaming window.
type WindowStatus ¶
WindowStatus describe the window status, which data are available.
func (*WindowStatus) AddCount ¶
func (w *WindowStatus) AddCount(n uint)
func (*WindowStatus) Count ¶
func (w *WindowStatus) Count() uint
func (*WindowStatus) IsFinished ¶
func (w *WindowStatus) IsFinished() bool
func (*WindowStatus) Size ¶
func (w *WindowStatus) Size() uint
func (*WindowStatus) Start ¶
func (w *WindowStatus) Start() uint
func (*WindowStatus) Status ¶
func (w *WindowStatus) Status() *WindowStatus
Click to show internal directories.
Click to hide internal directories.