Package mondrian.rolap.agg
Class SegmentBuilder.SegmentConverterImpl
- java.lang.Object
-
- mondrian.rolap.agg.SegmentBuilder.SegmentConverterImpl
-
- All Implemented Interfaces:
SegmentBuilder.SegmentConverter
- Enclosing class:
- SegmentBuilder
public static class SegmentBuilder.SegmentConverterImpl extends Object implements SegmentBuilder.SegmentConverter
Implementation ofSegmentBuilder.SegmentConverter
that uses anAggregationKey
andCellRequest
as context to convert aSegmentHeader
.This is nasty. A converter might be used for several headers, not necessarily with the context as the cell request and aggregation key. Converters only exist for fact tables and compound predicate combinations for which we have already done a load request.
It would be much better if there was a way to convert compound predicates from strings to predicates. Then we could obsolete the messy context inside converters, and maybe obsolete converters altogether.
-
-
Constructor Summary
Constructors Constructor Description SegmentConverterImpl(AggregationKey key, CellRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentWithData
convert(SegmentHeader header, SegmentBody body)
-
-
-
Constructor Detail
-
SegmentConverterImpl
public SegmentConverterImpl(AggregationKey key, CellRequest request)
-
-
Method Detail
-
convert
public SegmentWithData convert(SegmentHeader header, SegmentBody body)
- Specified by:
convert
in interfaceSegmentBuilder.SegmentConverter
-
-