Package velox.api.layer1.dynamichistory
Class Layer1ApiDynamicHistoryListener.LightweightHistoryInfo<T extends com.bookmap.api.Aggregation,E extends DynamicHistoryEvent>
java.lang.Object
velox.api.layer1.dynamichistory.Layer1ApiDynamicHistoryListener.DynamicHistoryInfo<T,E>
velox.api.layer1.dynamichistory.Layer1ApiDynamicHistoryListener.LightweightHistoryInfo<T,E>
- Enclosing interface:
Layer1ApiDynamicHistoryListener
public abstract static non-sealed class Layer1ApiDynamicHistoryListener.LightweightHistoryInfo<T extends com.bookmap.api.Aggregation,E extends DynamicHistoryEvent>
extends Layer1ApiDynamicHistoryListener.DynamicHistoryInfo<T,E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract EconvertAggregation(long timeFrom, long timeTo, T aggregation) Converts a single historical block aggregation into a Bookmap event.abstract com.bookmap.api.treestructure.TreeInfo<T, ? extends com.bookmap.api.LightweightAggregateable<T>> Methods inherited from class velox.api.layer1.dynamichistory.Layer1ApiDynamicHistoryListener.DynamicHistoryInfo
getAggregationClass, getDataSource
-
Constructor Details
-
LightweightHistoryInfo
public LightweightHistoryInfo()
-
-
Method Details
-
getTreeInfo
public abstract com.bookmap.api.treestructure.TreeInfo<T,? extends com.bookmap.api.LightweightAggregateable<T>> getTreeInfo()- Specified by:
getTreeInfoin classLayer1ApiDynamicHistoryListener.DynamicHistoryInfo<T extends com.bookmap.api.Aggregation,E extends DynamicHistoryEvent>
-
convertAggregation
Converts a single historical block aggregation into a Bookmap event.- Parameters:
timeFrom- start of the block's time window, in nanoseconds (inclusive)timeTo- end of the block's time window, in nanoseconds (exclusive)aggregation- the block's aggregation to convert- Returns:
- the event for this block; its
timeFrom/timeToshould be the given window
-