|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.SqlTupleReader mondrian.rolap.HighCardSqlTupleReader
public class HighCardSqlTupleReader
Reads the members of a single level (level.members) or of multiple levels (crossjoin).
Nested Class Summary | |
---|---|
(package private) static class |
HighCardSqlTupleReader.WhichSelect
Description of the position of a SELECT statement in a UNION. |
Nested classes/interfaces inherited from interface mondrian.rolap.TupleReader |
---|
TupleReader.MemberBuilder |
Field Summary | |
---|---|
(package private) int |
maxRows
|
Fields inherited from class mondrian.rolap.SqlTupleReader |
---|
constraint |
Constructor Summary | |
---|---|
HighCardSqlTupleReader(TupleConstraint constraint)
|
Method Summary | |
---|---|
void |
addLevelMembers(RolapLevel level,
TupleReader.MemberBuilder memberBuilder,
List<RolapMember> srcMembers)
Adds a hierarchy to retrieve members from. |
Object |
getCacheKey()
Returns an object that uniquely identifies the Result that this TupleReader would return. |
int |
getEnumTargetCount()
|
int |
getMaxRows()
|
void |
noMoreRows()
Avoids loading of more results. |
protected void |
prepareTuples(DataSource dataSource,
List<List<RolapMember>> partialResult,
List<List<RolapMember>> newPartialResult)
|
List<RolapMember> |
readMembers(DataSource dataSource,
List<List<RolapMember>> partialResult,
List<List<RolapMember>> newPartialResult)
Performs the read. |
boolean |
readNextTuple()
Reads next tuple notifing all internal targets. |
List<RolapMember[]> |
readTuples(DataSource jdbcConnection,
List<List<RolapMember>> partialResult,
List<List<RolapMember>> newPartialResult)
Performs the read. |
void |
setMaxRows(int maxRows)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int maxRows
Constructor Detail |
---|
public HighCardSqlTupleReader(TupleConstraint constraint)
Method Detail |
---|
public void addLevelMembers(RolapLevel level, TupleReader.MemberBuilder memberBuilder, List<RolapMember> srcMembers)
TupleReader
addLevelMembers
in interface TupleReader
addLevelMembers
in class SqlTupleReader
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 levelpublic Object getCacheKey()
TupleReader
TupleReader
would return. Clients may use this as a key for
caching the result.
getCacheKey
in interface TupleReader
getCacheKey
in class SqlTupleReader
public int getEnumTargetCount()
getEnumTargetCount
in class SqlTupleReader
protected void prepareTuples(DataSource dataSource, List<List<RolapMember>> partialResult, List<List<RolapMember>> newPartialResult)
prepareTuples
in class SqlTupleReader
public List<RolapMember> readMembers(DataSource dataSource, List<List<RolapMember>> partialResult, List<List<RolapMember>> newPartialResult)
TupleReader
readMembers
in interface TupleReader
readMembers
in class SqlTupleReader
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
public List<RolapMember[]> readTuples(DataSource jdbcConnection, List<List<RolapMember>> partialResult, List<List<RolapMember>> newPartialResult)
TupleReader
readTuples
in interface TupleReader
readTuples
in class SqlTupleReader
public void noMoreRows()
public boolean readNextTuple()
public void setMaxRows(int maxRows)
setMaxRows
in class SqlTupleReader
public int getMaxRows()
getMaxRows
in class SqlTupleReader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |