mondrian.olap
Interface NamedSet

All Superinterfaces:
OlapElement
All Known Implementing Classes:
Query.ScopedNamedSet, SetBase

public interface NamedSet
extends OlapElement

A named set of members or tuples.

A set can be defined in a query, using a WITH SET clause, or in a schema. Named sets in a schema can be defined against a particular cube or virtual cube, or shared between all cubes.

Since:
6 August, 2001
Version:
$Id: //open/mondrian/src/main/mondrian/olap/NamedSet.java#7 $
Author:
jhyde

Method Summary
 Exp getExp()
          Returns the expression used to derive this named set.
 java.lang.String getNameUniqueWithinQuery()
          Returns a name for this set that is unique within the query.
 Type getType()
          Returns the type of this named set.
 boolean isDynamic()
          Returns whether this named set is dynamic.
 void setName(java.lang.String newName)
          Sets the name of this named set.
 NamedSet validate(Validator validator)
           
 
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getDescription, getDimension, getHierarchy, getName, getQualifiedName, getUniqueName, lookupChild
 

Method Detail

setName

void setName(java.lang.String newName)
Sets the name of this named set.


getType

Type getType()
Returns the type of this named set.


getExp

Exp getExp()
Returns the expression used to derive this named set.


validate

NamedSet validate(Validator validator)

getNameUniqueWithinQuery

java.lang.String getNameUniqueWithinQuery()
Returns a name for this set that is unique within the query.

This is necessary when there are several 'AS' expressions, or an 'AS' expression overrides a named set defined using 'WITH MEMBER' clause or against a cube.


isDynamic

boolean isDynamic()
Returns whether this named set is dynamic.

Evaluation rules:

Returns:
Whether this named set is dynamic

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads