pub trait IterBuilder: Send + Sync {
// Required method
fn build(
&self,
metrics: Option<MemScanMetrics>,
) -> Result<BoxedBatchIterator>;
// Provided methods
fn is_record_batch(&self) -> bool { ... }
fn build_record_batch(
&self,
metrics: Option<MemScanMetrics>,
) -> Result<BoxedRecordBatchIterator> { ... }
}
Expand description
Builder to build an iterator to read the range. The builder should know the projection and the predicate to build the iterator.
Required Methods§
Sourcefn build(&self, metrics: Option<MemScanMetrics>) -> Result<BoxedBatchIterator>
fn build(&self, metrics: Option<MemScanMetrics>) -> Result<BoxedBatchIterator>
Returns the iterator to read the range.
Provided Methods§
Sourcefn is_record_batch(&self) -> bool
fn is_record_batch(&self) -> bool
Returns whether the iterator is a record batch iterator.
Sourcefn build_record_batch(
&self,
metrics: Option<MemScanMetrics>,
) -> Result<BoxedRecordBatchIterator>
fn build_record_batch( &self, metrics: Option<MemScanMetrics>, ) -> Result<BoxedRecordBatchIterator>
Returns the record batch iterator to read the range.