More concrete xbinned to tbinned aggregator

This commit is contained in:
Dominik Werder
2021-05-26 15:20:28 +02:00
parent 0ab17d35da
commit e312db7ac2
4 changed files with 205 additions and 20 deletions

View File

@@ -480,6 +480,12 @@ impl Collectable for MinMaxAvgScalarBinBatch {
}
}
pub trait RangeOverlapInfo {
fn ends_before(&self, range: NanoRange) -> bool;
fn ends_after(&self, range: NanoRange) -> bool;
fn starts_after(&self, range: NanoRange) -> bool;
}
pub trait XBinnedEvents<SK>:
Sized
+ Unpin
@@ -539,7 +545,8 @@ pub trait BinnedStreamKind: Clone + Unpin + Send + Sync + 'static
type XBinnedEvents: XBinnedEvents<Self>;
type TBinnedBins: TBinnedBins;
type XBinnedToTBinnedAggregator;
type XBinnedToTBinnedStream;
type XBinnedToTBinnedStream: Stream<Item = Result<StreamItem<RangeCompletableItem<Self::TBinnedBins>>, Error>>
+ Send;
fn new_binned_from_prebinned(
&self,