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.
()
| 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. |
| 492 | func (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. |
| 497 | func (wfr *WindowFrameRun) FirstInPeerGroup() bool { |
no test coverage detected