net.sf.farrago.fem.fennel
Class FemWindowDefClass$Hib
java.lang.Object
org.eigenbase.enki.jmi.impl.RefBaseObjectBase
org.eigenbase.enki.jmi.impl.RefFeaturedBase
org.eigenbase.enki.jmi.impl.RefClassBase
net.sf.farrago.fem.fennel.FemWindowDefClass$Hib
- All Implemented Interfaces:
- RefBaseObject, RefClass, RefFeatured, FemWindowDefClass
public class FemWindowDefClass$Hib
- extends RefClassBase
- implements FemWindowDefClass
Implements MOF's WindowDef class proxy interface.
- Author:
MofImplementationHandler
The definition of a window inside a FemWindowStreamDef
.
A window has either a logical or physical range, and contains a number
of partitions:
- A logical window is defined by a
range of values, and may have several partitions.
- A physical
window is defined by a range of rows, and may have several partitions.
Methods inherited from class org.eigenbase.enki.jmi.impl.RefClassBase |
getRepository, refAllOfClass, refAllOfType, refCreateInstance, refCreateStruct, refCreateStruct, refGetEnum, refGetEnum, refImmediatePackage, register, unregister |
Methods inherited from class org.eigenbase.enki.jmi.impl.RefBaseObjectBase |
createInstance, equals, getCurrentInitializer, getEnum, getInitializer, getMofId, getTag, hashCode, invokeMethod, invokeMethod, logJmi, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints, setMofId, setRefMetaObject |
FemWindowDefClass$Hib
FemWindowDefClass$Hib(RefPackage container)
createFemWindowDef
public FemWindowDef createFemWindowDef()
- Description copied from interface:
FemWindowDefClass
- The default factory operation used to create an instance object.
- Specified by:
createFemWindowDef
in interface FemWindowDefClass
- Returns:
- The created instance object.
createFemWindowDef
public FemWindowDef createFemWindowDef(FemTupleProjection orderKeyList,
boolean physical,
String range,
int offset)
- Description copied from interface:
FemWindowDefClass
- Creates an instance object having attributes initialized by the passed
values.
- Specified by:
createFemWindowDef
in interface FemWindowDefClass
- Parameters:
orderKeyList
- List of columns to sort the window on. For
example, in WINDOW w AS (ORDER BY
hiredate PARTITION BY gender ROWS 5 PRECEDING), the order list
is "hiredate".
Often the optimizer will have ensured
that the input stream is already sorted on the sort key, or at least a
subset of it; for infinite relations, this is required in order to
perform aggregation. See FemWindowStreamDef.getInputOrderKeyList()
.
physical
- True if the window is physical (defined by a number
of rows); false if the window is logical (defined by a range of
values).
range
- If physical, the number of rows; if logical, the value
range (for example, 3,600,000 milliseconds).
offset
- This is the offset of the window. Positive value
refers to a leading window and negative value refers to a trailing
window.
- Returns:
- The created instance object.
checkConstraints
protected void checkConstraints(List<JmiException> errors,
boolean deepVerify)
- Specified by:
checkConstraints
in class RefBaseObjectBase
getInstanceClass
public Class<?> getInstanceClass()
- Specified by:
getInstanceClass
in class RefClassBase