public interface WindowFrameSpecification
WindowFrameSpecification
provides all the information specified in the frame clause of a window function calls.Modifier and Type | Interface and Description |
---|---|
static class |
WindowFrameSpecification.Unit
The frame unit specifies how the offsets specified in the window frame clause
are to be interpreted and hence, which records qualify for a window frame.
|
Modifier and Type | Method and Description |
---|---|
FrameBound |
getLeftBound()
Returns the
FrameBound object representing the left bound of this window frame. |
FrameBound |
getRightBound()
Returns the
FrameBound object representing the right bound of this window frame. |
WindowFrameSpecification.Unit |
getUnit()
Returns the specified frame unit.
|
boolean |
hasCustomBounds()
Returns
true if this window frame has at least one custom bound. |
boolean |
isUnbounded()
Returns
true if this window frame is unbounded and includes any preceding and any succeeding records. |
boolean |
isUnboundedFollowing()
Returns
true if this window frame is unbounded to the right and includes any succeeding records. |
boolean |
isUnboundedPreceding()
Returns
true if this window frame is unbounded to the left and includes any preceding records. |
boolean |
isUnboundedPrecedingToAtLeastCurrentRow()
Returns
true if this window frame is unbounded to the left and includes any succeeding records on to at least the current row. |
WindowFrameSpecification.Unit getUnit()
FrameBound getLeftBound()
FrameBound
object representing the left bound of this window frame.FrameBound
object representing the left bound of this window frameFrameBound getRightBound()
FrameBound
object representing the right bound of this window frame.FrameBound
object representing the right bound of this window frameboolean isUnbounded()
true
if this window frame is unbounded and includes any preceding and any succeeding records.true
if this window frame is unbounded and includes any preceding and any succeeding recordsboolean isUnboundedPreceding()
true
if this window frame is unbounded to the left and includes any preceding records.true
if this window frame is unbounded to the left and includes any preceding recordsboolean isUnboundedFollowing()
true
if this window frame is unbounded to the right and includes any succeeding records.true
if this window frame is unbounded to the right and includes any succeeding recordsboolean isUnboundedPrecedingToAtLeastCurrentRow()
true
if this window frame is unbounded to the left and includes any succeeding records on to at least the current row.true
if this window frame is unbounded to the left and includes any succeeding records on to at least the current rowboolean hasCustomBounds()
true
if this window frame has at least one custom bound.true
if this window frame has at least one custom bound