public static final class SqlMemberSource.NullValuePoolFactory extends Object implements SqlMemberSource.ValuePoolFactory
SqlMemberSource.ValuePoolFactory
implementation, used if
MondrianProperties.SqlMemberSourceValuePoolFactoryClass
is not set.Constructor and Description |
---|
NullValuePoolFactory() |
Modifier and Type | Method and Description |
---|---|
Map<Object,Object> |
create(SqlMemberSource source)
Create a new
Map to be used to pool values. |
public Map<Object,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.
create
in interface SqlMemberSource.ValuePoolFactory
source
- The SqlMemberSource
in which values are
being pooled.