|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.olap.OlapUtils
public class OlapUtils
OlapUtils is a collection of utility static methods for searching within schemas and selecting members from a DataSource.
Method Summary | |
---|---|
static MemberList |
extractMembers(OlapSet set)
Retrieves the members from a set. |
static MemberList |
extractMembers(OlapSet set,
int index)
Retrieves the members from a set. |
static MemberList |
extractMembers(OlapSet set,
int index,
boolean distinct)
Retrieves the members from a set. |
static MemberList |
extractMembers(SetSelection set,
Connection connection)
Retrieves the members from a set selection. |
static OlapCube |
findCubeByName(OlapSchema schema,
String name)
Finds a cube by name within a schema. |
static OlapDimension |
findDimensionByID(OlapCube cube,
String id)
Finds a dimension by id within a cube. |
static OlapDimension |
findDimensionByName(OlapCube cube,
String name)
Finds a dimension by name within a cube. |
static OlapHierarchy |
findHierarchyByID(OlapCube cube,
String id)
Finds a hierarchy by id within a cube. |
static OlapHierarchy |
findHierarchyByID(OlapDimension dimension,
String id)
Finds a hierarchy by id within a dimension. |
static OlapHierarchy |
findHierarchyByID(OlapSchema schema,
String id)
Finds a hierarchy by id within a schema. |
static OlapHierarchy |
findHierarchyByName(OlapCube cube,
String name)
Finds a hierarchy by name within a cube. |
static OlapHierarchy |
findHierarchyByName(OlapDimension dimension,
String name)
Finds a hierarchy by name within a dimension. |
static OlapLevel |
findLevelByID(OlapDimension dimension,
String id)
Finds a level by id within a dimension. |
static OlapLevel |
findLevelByID(OlapHierarchy hierarchy,
String id)
Finds a level by id within a hierarchy. |
static OlapLevel |
findLevelByName(OlapDimension dimension,
String name)
Finds a level by name within a dimension. |
static OlapLevel |
findLevelByName(OlapHierarchy hierarchy,
String name)
Finds a level by name within a hierarchy. |
static OlapMeasure |
findMeasureByName(OlapCube cube,
String name)
Finds a measure by name within a cube. |
static MemberList |
getChildrenMembers(OlapMember member,
Connection connection)
Retrieves the children of a member, by querying the datasource. |
static int |
getLevelIndex(OlapMember member)
Returns the level depth of a given member. |
static MemberList |
getMembers(OlapMember member,
int operators,
Connection connection)
Retrieves a list of members, based on a given member and a selection operator mask, by querying the datasource. |
static OlapMember |
retrieveMember(String[] memberPath,
Connection connection)
Retrieves a member from a cube. |
static MemberList |
retrieveMembers(String[] memberPath,
int operators,
Connection connection)
Retrieves a list of members from a cube. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MemberList extractMembers(OlapSet set)
set
- the set whose members are retrieved
public static MemberList extractMembers(OlapSet set, int index, boolean distinct)
distinct
is true, duplicate members are removed.
set
- the set whose members are retrievedindex
- the location of the members in the tuplesdistinct
- when true, duplicate members are removed
public static MemberList extractMembers(OlapSet set, int index)
set
- the set whose members are retrievedindex
- the location of the members in the tuples
public static MemberList extractMembers(SetSelection set, Connection connection) throws DataSourceException
set
- the set whose members are retrievedconnection
- the datasource connection
DataSourceException
public static OlapCube findCubeByName(OlapSchema schema, String name)
schema
- the schema to searchname
- the name of the cube to look for
public static OlapDimension findDimensionByID(OlapCube cube, String id)
cube
- the cube to searchid
- the id of the dimension to look for
public static OlapDimension findDimensionByName(OlapCube cube, String name)
cube
- the cube to searchname
- the name of the dimension to look for
public static OlapHierarchy findHierarchyByID(OlapCube cube, String id)
cube
- the cube to searchid
- the id of the hierarchy to look for
public static OlapHierarchy findHierarchyByID(OlapDimension dimension, String id)
dimension
- the dimension to searchid
- the id of the hierarchy to look for
public static OlapHierarchy findHierarchyByID(OlapSchema schema, String id)
schema
- the schema to searchid
- the id of the hierarchy to look for
public static OlapHierarchy findHierarchyByName(OlapCube cube, String name)
cube
- the cube to searchname
- the name of the hierarchy to look for
public static OlapHierarchy findHierarchyByName(OlapDimension dimension, String name)
dimension
- the dimension to searchname
- the name of the hierarchy to look for
public static OlapLevel findLevelByID(OlapHierarchy hierarchy, String id)
hierarchy
- the hierarchy to searchid
- the id of the level to look for
public static OlapLevel findLevelByName(OlapHierarchy hierarchy, String name)
hierarchy
- the hierarchy to searchname
- the name of the level to look for
public static OlapMeasure findMeasureByName(OlapCube cube, String name)
cube
- the cube to searchname
- the name of the measure to look for
public static MemberList getChildrenMembers(OlapMember member, Connection connection) throws DataSourceException
member
- the member whose children are returnedconnection
- the datasource connection
DataSourceException
public static int getLevelIndex(OlapMember member)
member
- the member whose level depth is returned
public static MemberList getMembers(OlapMember member, int operators, Connection connection) throws DataSourceException
member
- the member which serves as the basis for the selectionoperators
- a selection operator mask, as defined in SelectionConstants
connection
- the datasource connection
DataSourceException
public static OlapMember retrieveMember(String[] memberPath, Connection connection) throws DataSourceException
memberPath
- the path to the member starting from the dimension and the root memberconnection
- the datasource connection
DataSourceException
public static MemberList retrieveMembers(String[] memberPath, int operators, Connection connection) throws DataSourceException
SelectionConstants
, in order to select the members, with respect
to the member's path.
memberPath
- the path to the member starting from the dimension and the root memberoperators
- an or'ed selection operator maskconnection
- the datasource connection
DataSourceException
public static OlapLevel findLevelByID(OlapDimension dimension, String id)
dimension
- the dimension to searchid
- the id of the level to look for
public static OlapLevel findLevelByName(OlapDimension dimension, String name)
dimension
- the dimension to searchname
- the name of the level to look for
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |