net.sf.farrago.fem.fennel
Class FemWindowPartitionDef$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.RefObjectBase
              extended by net.sf.farrago.fem.fennel.FemWindowPartitionDef$Hib
All Implemented Interfaces:
RefBaseObject, RefFeatured, RefObject, FemWindowPartitionDef

public class FemWindowPartitionDef$Hib
extends RefObjectBase
implements FemWindowPartitionDef

Implements MOF's WindowPartitionDef interface.

Author:
MofImplementationHandler

A set of rows within a window which have a common value for a partitioning key. Each row is referred to as a 'bucket'.

There are actions -- expressed as calculator programs -- which get executed when a new bucket is created, when a set of values are added to a bucket, and when a set of values are removed from a bucket.


Field Summary
private  String addProgram
           
private  FemTupleDescriptor bucketDesc
           
private  String dropProgram
           
private  String initializeProgram
           
private  FemTupleProjection partitionKeyList
           
private  WindowPartitions window
           
 
Constructor Summary
FemWindowPartitionDef$Hib(RefClass refClass)
           
FemWindowPartitionDef$Hib(RefClass refClass, FemTupleProjection partitionKeyList, String initializeProgram, String addProgram, String dropProgram, FemTupleDescriptor bucketDesc)
           
 
Method Summary
protected  void checkConstraints(List<JmiException> errors, boolean deepVerify)
           
 String getAddProgram()
          Returns the value of attribute addProgram.
 FemTupleDescriptor getBucketDesc()
          Returns the value of attribute bucketDesc.
 String getDropProgram()
          Returns the value of attribute dropProgram.
 String getInitializeProgram()
          Returns the value of attribute initializeProgram.
 FemTupleProjection getPartitionKeyList()
          Returns the value of attribute partitionKeyList.
 FemWindowDef getWindow()
          Returns the value of reference Window.
 void setAddProgram(String newValue)
          Sets the value of addProgram attribute.
 void setBucketDesc(FemTupleDescriptor newValue)
          Sets the value of bucketDesc attribute.
 void setDropProgram(String newValue)
          Sets the value of dropProgram attribute.
 void setInitializeProgram(String newValue)
          Sets the value of initializeProgram attribute.
 void setPartitionKeyList(FemTupleProjection newValue)
          Sets the value of partitionKeyList attribute.
 void setWindow(FemWindowDef newValue)
          Sets the value of Window reference.
 
Methods inherited from class org.eigenbase.enki.jmi.impl.RefObjectBase
findAssociationEnd, findAttribute, getRepository, refClass, refDelete, refImmediateComposite, refImmediatePackage, refIsInstanceOf, refMetaObject, refOutermostComposite, setRefMetaObject, 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, refMofId, refOutermostPackage, refVerifyConstraints, setMofId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
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
 

Field Detail

partitionKeyList

private FemTupleProjection partitionKeyList

initializeProgram

private String initializeProgram

addProgram

private String addProgram

dropProgram

private String dropProgram

bucketDesc

private FemTupleDescriptor bucketDesc

window

private WindowPartitions window
Constructor Detail

FemWindowPartitionDef$Hib

FemWindowPartitionDef$Hib(RefClass refClass)

FemWindowPartitionDef$Hib

FemWindowPartitionDef$Hib(RefClass refClass,
                          FemTupleProjection partitionKeyList,
                          String initializeProgram,
                          String addProgram,
                          String dropProgram,
                          FemTupleDescriptor bucketDesc)
Method Detail

getPartitionKeyList

public FemTupleProjection getPartitionKeyList()
Description copied from interface: FemWindowPartitionDef
Returns the value of attribute partitionKeyList.

List of columns to partition the window on.

Specified by:
getPartitionKeyList in interface FemWindowPartitionDef
Returns:
Value of attribute partitionKeyList.

setPartitionKeyList

public void setPartitionKeyList(FemTupleProjection newValue)
Description copied from interface: FemWindowPartitionDef
Sets the value of partitionKeyList attribute. See FemWindowPartitionDef.getPartitionKeyList() for description on the attribute.

Specified by:
setPartitionKeyList in interface FemWindowPartitionDef
Parameters:
newValue - New value to be set.

getInitializeProgram

public String getInitializeProgram()
Description copied from interface: FemWindowPartitionDef
Returns the value of attribute initializeProgram.

Calculator program executed to initialize a bucket of this window. Typically simply zeroes out the values.

Specified by:
getInitializeProgram in interface FemWindowPartitionDef
Returns:
Value of attribute initializeProgram.

setInitializeProgram

public void setInitializeProgram(String newValue)
Description copied from interface: FemWindowPartitionDef
Sets the value of initializeProgram attribute. See FemWindowPartitionDef.getInitializeProgram() for description on the attribute.

Specified by:
setInitializeProgram in interface FemWindowPartitionDef
Parameters:
newValue - New value to be set.

getAddProgram

public String getAddProgram()
Description copied from interface: FemWindowPartitionDef
Returns the value of attribute addProgram.

Calculator program executed to add a value to each field of a bucket of this window.

Specified by:
getAddProgram in interface FemWindowPartitionDef
Returns:
Value of attribute addProgram.

setAddProgram

public void setAddProgram(String newValue)
Description copied from interface: FemWindowPartitionDef
Sets the value of addProgram attribute. See FemWindowPartitionDef.getAddProgram() for description on the attribute.

Specified by:
setAddProgram in interface FemWindowPartitionDef
Parameters:
newValue - New value to be set.

getDropProgram

public String getDropProgram()
Description copied from interface: FemWindowPartitionDef
Returns the value of attribute dropProgram.

Calculator program executed to remove a value from each field of a bucket of this window.

Specified by:
getDropProgram in interface FemWindowPartitionDef
Returns:
Value of attribute dropProgram.

setDropProgram

public void setDropProgram(String newValue)
Description copied from interface: FemWindowPartitionDef
Sets the value of dropProgram attribute. See FemWindowPartitionDef.getDropProgram() for description on the attribute.

Specified by:
setDropProgram in interface FemWindowPartitionDef
Parameters:
newValue - New value to be set.

getBucketDesc

public FemTupleDescriptor getBucketDesc()
Description copied from interface: FemWindowPartitionDef
Returns the value of attribute bucketDesc.

Describes the types of the columns in a bucket belonging to this window.

Specified by:
getBucketDesc in interface FemWindowPartitionDef
Returns:
Value of attribute bucketDesc.

setBucketDesc

public void setBucketDesc(FemTupleDescriptor newValue)
Description copied from interface: FemWindowPartitionDef
Sets the value of bucketDesc attribute. See FemWindowPartitionDef.getBucketDesc() for description on the attribute.

Specified by:
setBucketDesc in interface FemWindowPartitionDef
Parameters:
newValue - New value to be set.

getWindow

public FemWindowDef getWindow()
Description copied from interface: FemWindowPartitionDef
Returns the value of reference Window.

Specified by:
getWindow in interface FemWindowPartitionDef
Returns:
Value of reference Window.

setWindow

public void setWindow(FemWindowDef newValue)
Description copied from interface: FemWindowPartitionDef
Sets the value of Window reference. See FemWindowPartitionDef.getWindow() for description on the attribute.

Specified by:
setWindow in interface FemWindowPartitionDef
Parameters:
newValue - New value to be set.

checkConstraints

protected void checkConstraints(List<JmiException> errors,
                                boolean deepVerify)
Specified by:
checkConstraints in class RefBaseObjectBase