***  This class is subject to change   ***

com.sas.iquery.metadata.business.step
Interface StepFilterInterface

All Superinterfaces:
Base, BusinessModelResourceReferencer, PropertyChangeListenee, StepInterface, UsabilityInterface
All Known Implementing Classes:
BaseFilter

public interface StepFilterInterface
extends StepInterface

Provides modeling for steps that filter data. A filtering step defines a set of members that are associated with a given step. The relationship between a filter and the current step is defined by the action type, which defines how the new set of members should be incorporated with the existing set of members. For example, the members might replace the existing set of members or they might be added to whatever is already there.

See Also:
StepInterface

Field Summary
static int APPEND_ACTION_TYPE
          The members defined in this step are appended to the members of the previous step.
static int DIFFERENCE_ACTION_TYPE
          The members defined in this step are removed from the set of members defined in the previous step.
static int INITIAL_ACTION_TYPE
          This step represents the initial set of members or an operation that is meant to completely replace the pre-existing state of the DataItem (eg DrillDown).
static int INSERT_ACTION_TYPE
          The members defined in this step are inserted in the set of members defined in the previous step.
static int INTERSECT_ACTION_TYPE
          The members defined by the intersection of this step and the outcome of previous steps.
static int PREPEND_ACTION_TYPE
          The members defined in this step are prepended to the members of the previous step.
static int SPECIAL_ACTION_TYPE
          This action type is used specifically for expand and collapse
static int UNION_ACTION_TYPE
          The members defined by the union of this step and the outcome of previous steps.
 
Fields inherited from interface com.sas.iquery.metadata.business.Base
EVENT_OBJECT_DEFINITION_CHANGED
 
Method Summary
 int getActionType()
          This method returns the action to be performed by this filter step.
 void setActionType(int actionType)
          This method defines the action to be performed by this filter step.
 
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer
getResources
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface com.sas.iquery.metadata.PropertyChangeListenee
addListener, getListeners, removeListener
 
Methods inherited from interface com.sas.iquery.metadata.business.UsabilityInterface
getReasonsUnusable, isUsableInQuery
 

Field Detail

INITIAL_ACTION_TYPE

public static final int INITIAL_ACTION_TYPE
This step represents the initial set of members or an operation that is meant to completely replace the pre-existing state of the DataItem (eg DrillDown). The previous steps, however, should be maintained in the event that this Step is removed.

Examples of how MDX for step is applied using action type.

Example 1:

Step 1: Navigation - drill down - generates MDX string of [CARS].[CAR].[CHILDREN] where initial MDX expression enters step. MDX generated from navigation step will enter as current expression for second step.

Step 2: Rank - top percent - generates TopPercent([CARS].[CAR].[CHILDREN]) where MDX uses expression from step 1 to complete.

Example 2:

Step 1: Rank - top percent - generates TopPercent([CARS].[CAR].Members) where MDX is using the initial MDX expression to complete MDX.

Step 2: Navigation - drill down generates MDX string of [CARS].[CAR].[CHILDREN] where MDX generated from navigation overrides any MDX generated in step 1

Example 3:

Step 1: Filter - filter based on data base range - generate ([CARS].[CAR].[Ford]: [CARS].[CAR].[Toyota]) where initial MDX enters this step. MDX generated from filter step will enter as current expression for second step.

Step 2: Rank top percent - generates TopPercent([CARS].[CAR].[Ford]: [CARS].[CAR].[Toyota]) where MDX uses expression from step to complete.

Example 4:

Step 1: Rank - top percent - generates TopPercent([CARS].[CAR].Members) where MDX is using the initial MDX expression to complete MDX.

Step 2: Filter -filter based on data base range - generate ([CARS].[CAR].[Ford]: [CARS].[CAR].[Toyota]) where MDX generated from filter overrides any MDX generated in step 1


APPEND_ACTION_TYPE

public static final int APPEND_ACTION_TYPE
The members defined in this step are appended to the members of the previous step.

PREPEND_ACTION_TYPE

public static final int PREPEND_ACTION_TYPE
The members defined in this step are prepended to the members of the previous step.

INSERT_ACTION_TYPE

public static final int INSERT_ACTION_TYPE
The members defined in this step are inserted in the set of members defined in the previous step.

DIFFERENCE_ACTION_TYPE

public static final int DIFFERENCE_ACTION_TYPE
The members defined in this step are removed from the set of members defined in the previous step.

INTERSECT_ACTION_TYPE

public static final int INTERSECT_ACTION_TYPE
The members defined by the intersection of this step and the outcome of previous steps.

SPECIAL_ACTION_TYPE

public static final int SPECIAL_ACTION_TYPE
This action type is used specifically for expand and collapse

UNION_ACTION_TYPE

public static final int UNION_ACTION_TYPE
The members defined by the union of this step and the outcome of previous steps.
Method Detail

setActionType

public void setActionType(int actionType)
This method defines the action to be performed by this filter step. This action is to be performed on the data resulting from applying the steps previous to this step in the list of steps set on a data item or query. The valid action types are defined in this interface.
Parameters:
actionType - The action to be performed

getActionType

public int getActionType()
This method returns the action to be performed by this filter step. This action is to be performed on the data resulting from applying the steps previous to this step in the list of steps set on a data item or query. The action types are defined in this interface.
Returns:
The action to be performed

***  This class is subject to change   ***




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 16:04:04