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 |
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) |
protected boolean |
matchesDimensionName(JROlapHierarchy hierarchy,
java.lang.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) |
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OLAP_AXIS_NOT_FOUND_IN_RESULT
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OLAP_CANNOT_CONVERT_FIELD_TYPE
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OLAP_CANNOT_CONVERT_STRING_VALUE_TYPE
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OLAP_DIMENSION_NOT_FOUND
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OLAP_FIELD_VALUE_NOT_RETRIEVED
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OLAP_INTERNAL_ERROR
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OLAP_INVALID_FIELD_MAPPING
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OLAP_LEVEL_NOT_FOUND
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OLAP_TUPLE_NOT_FOUND
protected final JROlapResult olapResult
protected JROlapResultAxis[] axes
protected final JROlapHierarchy[][] queryHierarchies
protected final int hierarchiesCount
protected java.util.Map<java.lang.Object,JROlapDataSource.FieldMatcher> fieldMatchers
protected int[][] fieldsMaxDepths
protected boolean[] iteratePositions
protected boolean iterate
protected boolean dataField
protected java.util.Map<java.lang.Object,java.lang.Object> 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
protected boolean matchesDimensionName(JROlapHierarchy hierarchy, java.lang.String dimensionName)
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-2014 TIBCO Software Inc. www.jaspersoft.com