mondrian.rolap
Class HighCardSqlTupleReader
java.lang.Object
mondrian.rolap.SqlTupleReader
mondrian.rolap.HighCardSqlTupleReader
- All Implemented Interfaces:
- TupleReader
public class HighCardSqlTupleReader
- extends SqlTupleReader
Reads the members of a single level (level.members) or of multiple levels
(crossjoin).
- Since:
- Dec, 2007
- Author:
- luis f. canals
|
Field Summary |
(package private) int |
maxRows
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxRows
int maxRows
HighCardSqlTupleReader
public HighCardSqlTupleReader(TupleConstraint constraint)
addLevelMembers
public void addLevelMembers(RolapLevel level,
TupleReader.MemberBuilder memberBuilder,
List<RolapMember> srcMembers)
- Description copied from interface:
TupleReader
- Adds a hierarchy to retrieve members from.
- Specified by:
addLevelMembers in interface TupleReader- Overrides:
addLevelMembers in class SqlTupleReader
- Parameters:
level - level that the members correspond tomemberBuilder - used to build new members for this levelsrcMembers - if set, array of enumerated members that make up
this level
prepareTuples
protected void prepareTuples(DataSource dataSource,
TupleList partialResult,
List<List<RolapMember>> newPartialResult)
- Overrides:
prepareTuples in class SqlTupleReader
readMembers
public TupleList readMembers(DataSource dataSource,
TupleList partialResult,
List<List<RolapMember>> newPartialResult)
- Description copied from interface:
TupleReader
- Performs the read.
- Specified by:
readMembers in interface TupleReader- Overrides:
readMembers in class SqlTupleReader
- Parameters:
dataSource - source for reading tuplespartialResult - partially cached result that should be used
instead of executing sql querynewPartialResult - if non-null, return the result of the read;
note that this is a subset of the full return list
- Returns:
- a list of RolapMember
readTuples
public TupleList readTuples(DataSource jdbcConnection,
TupleList partialResult,
List<List<RolapMember>> newPartialResult)
- Description copied from interface:
TupleReader
- Performs the read.
- Specified by:
readTuples in interface TupleReader- Overrides:
readTuples in class SqlTupleReader
- Parameters:
jdbcConnection - Data sourcepartialResult - List of rows from previous passnewPartialResult - Populated with a new list of rows
- Returns:
- a list of tuples
readNextTuple
public boolean readNextTuple()
- Reads next tuple notifing all internal targets.
- Returns:
- whether there are any more rows
setMaxRows
public void setMaxRows(int maxRows)
- Overrides:
setMaxRows in class SqlTupleReader
getMaxRows
public int getMaxRows()
- Overrides:
getMaxRows in class SqlTupleReader
getBaseCubeCollection
Collection<RolapCube> getBaseCubeCollection(Query query)
- Overrides:
getBaseCubeCollection in class SqlTupleReader