Class WindowFunctionSupport
Immutable description of a Dialect's native window-function syntax.
Providers supply a stable profile through
Dialect.getWindowFunctionSupport(). Baseline window
functions, window partitioning, each frame unit, and non-default frame
exclusion are reported independently so consumers can validate the exact
syntax they render. Do not infer support for one frame unit from another.
Every refinement requires WindowFunctionSupport.Feature.WINDOW_FUNCTIONS. In addition,
WindowFunctionSupport.Feature.FRAME_EXCLUSION requires at least one supported frame unit.
Providers refining a family profile should copy the profile returned by the
superclass and change only the features which differ.
This profile does not describe function-specific window restrictions or restrictions on individual frame bounds.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuild an immutable window-function-support profile.static enumAn independently configurable window-function syntax feature. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WindowFunctionSupportNo native window-function syntax.static final WindowFunctionSupportThe base-Dialect profile, which has no native window-function syntax. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder initialized fromSTANDARD.builder(WindowFunctionSupport base) Create a builder initialized with every feature from the given profile.The immutable set of supported window-function syntax features.booleansupports(WindowFunctionSupport.Feature feature) Whether the given window-function syntax feature is supported natively.
-
Field Details
-
NONE
No native window-function syntax. -
STANDARD
The base-Dialect profile, which has no native window-function syntax.
-
-
Method Details
-
builder
Create a builder initialized fromSTANDARD. -
builder
Create a builder initialized with every feature from the given profile.- Parameters:
base- the non-null profile to copy
-
getFeatures
The immutable set of supported window-function syntax features. -
supports
Whether the given window-function syntax feature is supported natively.
-