pub struct StreamingPipeline { /* private fields */ }Expand description
Composable bounded-memory point-cloud stream.
Implementations§
Source§impl StreamingPipeline
impl StreamingPipeline
Sourcepub fn new(
source: impl BoundedSpatialRecordSource + 'static,
source_id: impl Into<String>,
) -> RecordsResult<Self>
pub fn new( source: impl BoundedSpatialRecordSource + 'static, source_id: impl Into<String>, ) -> RecordsResult<Self>
Starts a workflow and meters chunks read from the original source.
Sourcepub fn schema(&self) -> &SchemaDescriptor
pub fn schema(&self) -> &SchemaDescriptor
Returns the output schema.
Sourcepub fn cancellation_token(&self) -> CancellationToken
pub fn cancellation_token(&self) -> CancellationToken
Returns the shared cooperative cancellation token.
Sourcepub fn crop(
self,
min: [f32; 3],
max: [f32; 3],
invert: bool,
) -> RecordsResult<Self>
pub fn crop( self, min: [f32; 3], max: [f32; 3], invert: bool, ) -> RecordsResult<Self>
Adds an inclusive axis-aligned crop.
Sourcepub fn transform(self, transform: Mat4<f32>) -> RecordsResult<Self>
pub fn transform(self, transform: Mat4<f32>) -> RecordsResult<Self>
Adds an affine position/normal transform.
Sourcepub fn voxel(self, config: StreamingVoxelConfig) -> RecordsResult<Self>
pub fn voxel(self, config: StreamingVoxelConfig) -> RecordsResult<Self>
Adds deterministic global voxel aggregation backed by bounded spool storage.
Sourcepub fn run_to_sink(
self,
sink: &mut dyn BoundedSpatialRecordSink,
) -> RecordsResult<StreamingReceipt>
pub fn run_to_sink( self, sink: &mut dyn BoundedSpatialRecordSink, ) -> RecordsResult<StreamingReceipt>
Drains the workflow into a synchronous bounded sink and returns its receipt.
Trait Implementations§
Source§impl IntoIterator for StreamingPipeline
impl IntoIterator for StreamingPipeline
Source§type Item = Result<SpatialRecordChunk, RecordsError>
type Item = Result<SpatialRecordChunk, RecordsError>
The type of the elements being iterated over.
Source§type IntoIter = StreamingPipelineIter
type IntoIter = StreamingPipelineIter
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl Freeze for StreamingPipeline
impl !RefUnwindSafe for StreamingPipeline
impl !Send for StreamingPipeline
impl !Sync for StreamingPipeline
impl Unpin for StreamingPipeline
impl UnsafeUnpin for StreamingPipeline
impl !UnwindSafe for StreamingPipeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more