[−][src]Function terminus_store::structure::wavelettree::build_wavelet_tree_from_stream
pub fn build_wavelet_tree_from_stream<SFn: FnMut() -> S + Send, S: Stream<Item = u64, Error = Error> + Send, F: 'static + FileLoad + FileStore>(
width: u8,
source: SFn,
destination_bits: F,
destination_blocks: F,
destination_sblocks: F
) -> impl Future<Item = (), Error = Error> + Send
Build a wavelet tree from the given width and source stream constructor.
Source stream constructor is a function that returns a new stream on demand. The wavelet tree constructor will iterate over this stream multiple times, which is why we need a constructor function here rather than just the stream itself.