Package mondrian.rolap
Class RolapMemberBase.DefaultPropertyValueMapFactory
- java.lang.Object
 - 
- mondrian.rolap.RolapMemberBase.DefaultPropertyValueMapFactory
 
 
- 
- All Implemented Interfaces:
 RolapMemberBase.PropertyValueMapFactory
- Enclosing class:
 - RolapMemberBase
 
public static final class RolapMemberBase.DefaultPropertyValueMapFactory extends Object implements RolapMemberBase.PropertyValueMapFactory
DefaultRolapMemberBase.PropertyValueMapFactoryimplementation, used ifMondrianProperties.PropertyValueMapFactoryClassis not set. 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultPropertyValueMapFactory() 
 - 
 
- 
- 
Method Detail
- 
create
public Map<String,Object> create(Member member)
Creates aMapto be used for storing property string/value pairs for the specifiedMember.This factory creates an
Flat3Mapif it appears that the provided member has less than 3 properties, and aHashMapif it appears that it has more than 3.Guessing the number of properties can be tricky since some subclasses of
have additional properties that aren't explicitly declared. The most common offenders are the (@link mondrian.olap.Measure} implementations, which often have 4 or more undeclared properties, so if the member is a measure, the factory will create aMemberHashMap.- Specified by:
 createin interfaceRolapMemberBase.PropertyValueMapFactory- Parameters:
 member- Member- Returns:
 - the Map instance to store property/value pairs
 
 
 - 
 
 -