public static class SegmentBuilder.SegmentConverterImpl extends Object implements SegmentBuilder.SegmentConverter
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 and Description |
---|
SegmentConverterImpl(AggregationKey key,
CellRequest request) |
Modifier and Type | Method and Description |
---|---|
SegmentWithData |
convert(SegmentHeader header,
SegmentBody body) |
public SegmentConverterImpl(AggregationKey key, CellRequest request)
public SegmentWithData convert(SegmentHeader header, SegmentBody body)
convert
in interface SegmentBuilder.SegmentConverter
Copyright © 2020 Hitachi Vantara. All rights reserved.