MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / DefaultFrameSize

Method DefaultFrameSize

pkg/sql/sem/tree/window_funcs.go:492–494  ·  view source on GitHub ↗

DefaultFrameSize returns the size of default window frame which contains the rows from the start of the partition through the last peer of the current row.

()

Source from the content-addressed store, hash-verified

490// DefaultFrameSize returns the size of default window frame which contains
491// the rows from the start of the partition through the last peer of the current row.
492func (wfr *WindowFrameRun) DefaultFrameSize() int {
493 return wfr.PeerHelper.GetFirstPeerIdx(wfr.CurRowPeerGroupNum) + wfr.PeerHelper.GetRowCount(wfr.CurRowPeerGroupNum)
494}
495
496// FirstInPeerGroup returns if the current row is the first in its peer group.
497func (wfr *WindowFrameRun) FirstInPeerGroup() bool {

Callers 2

FrameEndIdxMethod · 0.95
FrameSizeMethod · 0.95

Calls 2

GetFirstPeerIdxMethod · 0.80
GetRowCountMethod · 0.80

Tested by

no test coverage detected