net.sf.farrago.fem.fennel
Class FemWindowDefClass$Hib

java.lang.Object
  extended by org.eigenbase.enki.jmi.impl.RefBaseObjectBase
      extended by org.eigenbase.enki.jmi.impl.RefFeaturedBase
          extended by org.eigenbase.enki.jmi.impl.RefClassBase
              extended by 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:


Constructor Summary
FemWindowDefClass$Hib(RefPackage container)
           
 
Method Summary
protected  void checkConstraints(List<JmiException> errors, boolean deepVerify)
           
 FemWindowDef createFemWindowDef()
          The default factory operation used to create an instance object.
 FemWindowDef createFemWindowDef(FemTupleProjection orderKeyList, boolean physical, String range, int offset)
          Creates an instance object having attributes initialized by the passed values.
 Class<?> getInstanceClass()
           
 
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.RefFeaturedBase
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jmi.reflect.RefClass
refAllOfClass, refAllOfType, refCreateInstance, refCreateStruct, refCreateStruct, refGetEnum, refGetEnum
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Constructor Detail

FemWindowDefClass$Hib

FemWindowDefClass$Hib(RefPackage container)
Method Detail

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