public class JROlapDataSource extends 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 Map<Object,JROlapDataSource.FieldMatcher> |
fieldMatchers |
protected int[][] |
fieldsMaxDepths |
protected Map<Object,Object> |
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,
String dimension) |
protected String |
getFieldMapping(JRField field) |
Object |
getFieldValue(JRField jrField)
Convert the value of the data type of the Field
|
int |
getLevelDepth(TuplePosition pos,
String levelName) |
int |
getTuplePosition(int axisIndex,
Tuple tuple) |
protected boolean |
matchesDimensionName(JROlapHierarchy hierarchy,
String dimensionName) |
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 Map<Object,JROlapDataSource.FieldMatcher> fieldMatchers
protected int[][] fieldsMaxDepths
protected boolean[] iteratePositions
protected boolean iterate
protected boolean dataField
protected int[] axisPositions
protected boolean first
protected int[][] maxDepths
public JROlapDataSource(JRDataset dataset, JROlapResult result)
public boolean next()
throws JRException
JRDataSourcenext in interface JRDataSourceJRException - if any error occurs while trying to move to the next elementprotected boolean nextPositions()
public Object getFieldValue(JRField jrField) throws JRException
getFieldValue in interface JRDataSourcejrField - the Field whose type has to be convertedJRExceptionprotected void processMemberInfo(Member member)
public int getDimensionIndex(Axis axis, String dimension)
getDimensionIndex in interface MappingMetadataprotected boolean matchesDimensionName(JROlapHierarchy hierarchy, String dimensionName)
public int getLevelDepth(TuplePosition pos, String levelName)
getLevelDepth in interface MappingMetadataprotected void setMatchMemberDepth(Member memberInfo, JROlapMember member)
public int getTuplePosition(int axisIndex,
Tuple tuple)
getTuplePosition in interface MappingMetadataCopyright © 2014. All rights reserved.