public class JROlapDataSource extends java.lang.Object implements JRDataSource, MappingMetadata
Modifier and Type | Class and Description |
---|---|
protected class |
JROlapDataSource.DataFieldMatcher |
protected class |
JROlapDataSource.FieldMatcher |
protected class |
JROlapDataSource.MemberFieldMatcher |
Modifier and Type | Field and Description |
---|---|
protected JROlapResultAxis[] |
axes |
protected int[] |
axisPositions |
protected boolean |
dataField |
protected java.util.Map |
fieldMatchers |
protected int[][] |
fieldsMaxDepths |
protected java.util.Map |
fieldValues |
protected boolean |
first |
protected int |
hierarchiesCount |
protected boolean |
iterate |
protected boolean[] |
iteratePositions |
protected int[][] |
maxDepths |
protected JROlapResult |
olapResult |
protected JROlapHierarchy[][] |
queryHierarchies |
Constructor and Description |
---|
JROlapDataSource(JRDataset dataset,
JROlapResult result) |
Modifier and Type | Method and Description |
---|---|
int |
getDimensionIndex(Axis axis,
java.lang.String dimension) |
protected java.lang.String |
getFieldMapping(JRField field) |
java.lang.Object |
getFieldValue(JRField jrField)
Convert the value of the data type of the Field
|
int |
getLevelDepth(TuplePosition pos,
java.lang.String levelName) |
int |
getTuplePosition(int axisIndex,
Tuple tuple) |
boolean |
next()
Tries to position the cursor on the next element in the data source.
|
protected boolean |
nextPositions() |
protected void |
processMemberInfo(Member member) |
protected void |
setMatchMemberDepth(Member memberInfo,
JROlapMember member) |
protected final JROlapResult olapResult
protected JROlapResultAxis[] axes
protected final JROlapHierarchy[][] queryHierarchies
protected final int hierarchiesCount
protected java.util.Map fieldMatchers
protected int[][] fieldsMaxDepths
protected boolean[] iteratePositions
protected boolean iterate
protected boolean dataField
protected java.util.Map fieldValues
protected int[] axisPositions
protected boolean first
protected int[][] maxDepths
public JROlapDataSource(JRDataset dataset, JROlapResult result)
public boolean next() throws JRException
JRDataSource
next
in interface JRDataSource
JRException
- if any error occurs while trying to move to the next elementprotected boolean nextPositions()
public java.lang.Object getFieldValue(JRField jrField) throws JRException
getFieldValue
in interface JRDataSource
jrField
- the Field whose type has to be convertedJRException
protected java.lang.String getFieldMapping(JRField field)
protected void processMemberInfo(Member member)
public int getDimensionIndex(Axis axis, java.lang.String dimension)
getDimensionIndex
in interface MappingMetadata
public int getLevelDepth(TuplePosition pos, java.lang.String levelName)
getLevelDepth
in interface MappingMetadata
protected void setMatchMemberDepth(Member memberInfo, JROlapMember member)
public int getTuplePosition(int axisIndex, Tuple tuple)
getTuplePosition
in interface MappingMetadata
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com