libtcspc.BatchBinIncrementClusters¶
- final class libtcspc.BatchBinIncrementClusters(bucket_size, batch_size, *, buffer_provider=None, numeric_traits=None)[source]¶
Bases:
NodeProcessor that collects bin increment clusters into encoded batches.
An optimized analogue of
BatchforBinIncrementClusterEvent. Each completed batch is emitted as aBucketEventof bin indices. Must be paired withUnbatchBinIncrementClustersdownstream to recover the clusters.- Parameters:
bucket_size (int or Param[int]) – Size (in elements) of each storage bucket.
batch_size (int or Param[int]) – Number of clusters per batch.
buffer_provider (BucketSource or Param[PyBucketSource] or None) – Source of buckets. If
None, a defaultRecyclingBucketSourceis used.numeric_traits (NumericTraits or None) – Numeric traits specifying
bin_index_type. Defaults toNumericTraits().
Notes
Events handled:
BinIncrementClusterEvent: encoded into a batch; emitted when full.All other event types: pass through unchanged.
End of input: emit any partial batch, then pass through.
See also
- tcspc::batch_bin_increment_clusters()
The underlying C++ factory function.