Package mondrian.rolap
Interface TupleReader
-
- All Known Implementing Classes:
HighCardSqlTupleReader,SqlTupleReader
public interface TupleReaderDescribes the public methods ofSqlTupleReader.- Since:
- Nov 21, 2005
- Author:
- av
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTupleReader.MemberBuilderFactory to create new members for a hierarchy from SQL result.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLevelMembers(RolapLevel level, TupleReader.MemberBuilder memberBuilder, List<RolapMember> srcMembers)Adds a hierarchy to retrieve members from.ObjectgetCacheKey()Returns an object that uniquely identifies the Result that thisTupleReaderwould return.voidincrementEmptySets()Indicates that there was an empty argument somewhere in the tuple.TupleListreadMembers(DataSource dataSource, TupleList partialResult, List<List<RolapMember>> newPartialResult)Performs the read.TupleListreadTuples(DataSource dataSource, TupleList partialResult, List<List<RolapMember>> newPartialResult)Performs the read.
-
-
-
Method Detail
-
addLevelMembers
void addLevelMembers(RolapLevel level, TupleReader.MemberBuilder memberBuilder, List<RolapMember> srcMembers)
Adds a hierarchy to retrieve members from.- 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
-
readTuples
TupleList readTuples(DataSource dataSource, TupleList partialResult, List<List<RolapMember>> newPartialResult)
Performs the read.- Parameters:
dataSource- Data sourcepartialResult- List of rows from previous passnewPartialResult- Populated with a new list of rows- Returns:
- a list of tuples
-
readMembers
TupleList readMembers(DataSource dataSource, TupleList partialResult, List<List<RolapMember>> newPartialResult)
Performs the read.- 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
-
getCacheKey
Object getCacheKey()
Returns an object that uniquely identifies the Result that thisTupleReaderwould return. Clients may use this as a key for caching the result.- Returns:
- Cache key
-
incrementEmptySets
void incrementEmptySets()
Indicates that there was an empty argument somewhere in the tuple.
-
-