Package mondrian.rolap
Class SqlMemberSource.NullValuePoolFactory
- java.lang.Object
-
- mondrian.rolap.SqlMemberSource.NullValuePoolFactory
-
- All Implemented Interfaces:
SqlMemberSource.ValuePoolFactory
- Enclosing class:
- SqlMemberSource
public static final class SqlMemberSource.NullValuePoolFactory extends java.lang.Object implements SqlMemberSource.ValuePoolFactory
DefaultSqlMemberSource.ValuePoolFactory
implementation, used ifMondrianProperties.SqlMemberSourceValuePoolFactoryClass
is not set.
-
-
Constructor Summary
Constructors Constructor Description NullValuePoolFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Object,java.lang.Object>
create(SqlMemberSource source)
Create a newMap
to be used to pool values.
-
-
-
Method Detail
-
create
public java.util.Map<java.lang.Object,java.lang.Object> create(SqlMemberSource source)
Create a new
Map
to be used to pool values. The value pool permits us to reuse references to existing objects rather than create new references to what are essentially duplicates of the same object. The intent is to allow the duplicate object to be garbage collected earlier, thus keeping overall memory requirements down.This version returns null, meaning that by default values will not be pooled.
- Specified by:
create
in interfaceSqlMemberSource.ValuePoolFactory
- Parameters:
source
- TheSqlMemberSource
in which values are being pooled.- Returns:
- a new value pool map
-
-