mondrian.rolap.agg
Class SegmentBuilder.SegmentConverterImpl

java.lang.Object
  extended by mondrian.rolap.agg.SegmentBuilder.SegmentConverterImpl
All Implemented Interfaces:
SegmentBuilder.SegmentConverter
Enclosing class:
SegmentBuilder

public static class SegmentBuilder.SegmentConverterImpl
extends Object
implements SegmentBuilder.SegmentConverter

Implementation of SegmentBuilder.SegmentConverter that uses an AggregationKey and CellRequest as context to convert a SegmentHeader.

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
SegmentBuilder.SegmentConverterImpl(AggregationKey key, CellRequest request)
           
 
Method Summary
 SegmentWithData convert(SegmentHeader header, SegmentBody body)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentBuilder.SegmentConverterImpl

public SegmentBuilder.SegmentConverterImpl(AggregationKey key,
                                           CellRequest request)
Method Detail

convert

public SegmentWithData convert(SegmentHeader header,
                               SegmentBody body)
Specified by:
convert in interface SegmentBuilder.SegmentConverter

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads