Package com.onenetwork.platform.data.tlv
Interface BucketTransformer
public interface BucketTransformer
Interface to be implemented by functions which aggregate and/or disaggregate raw data
across multiple bucket types.
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.Integer,java.lang.Float>
transform(TimelineDefinition timelineDef, BucketizedValue bucketizedVal, java.util.List<java.lang.Integer> targetBucketIndexes)
Transforms timeline data values from one bucket type into one or more other buckets/types.
-
Method Details
-
transform
java.util.Map<java.lang.Integer,java.lang.Float> transform(TimelineDefinition timelineDef, BucketizedValue bucketizedVal, java.util.List<java.lang.Integer> targetBucketIndexes)Transforms timeline data values from one bucket type into one or more other buckets/types.- Parameters:
timelineDef
- contains the target bucketization timelinebucketizedVal
- a raw bucketized value which needs to be mapped into the given TimelineDefinition.targetBucketIndexes
- the bucketized value in question overlaps the buckets from timelineDef at these specified indexes- Returns:
- Map of target bucket index and value which are the result of the transform
-