pub struct ScoredDocumentSource { /* private fields */ }Implementations§
Source§impl ScoredDocumentSource
impl ScoredDocumentSource
pub fn new( table_name: &str, table: Arc<dyn TableRead>, input: ScoredInput, schema: Vec<String>, ordered_primary_key: Option<String>, predicate: Option<ProjectedPredicate>, ) -> Self
pub fn new_with_metadata( table_name: &str, table: Arc<dyn TableRead>, input: ScoredInput, schema: Vec<String>, ordered_primary_key: Option<String>, predicate: Option<ProjectedPredicate>, metadata: RelationMetadataProjection, ) -> Self
Sourcepub fn new_configured(
table_name: &str,
table: Arc<dyn TableRead>,
input: ScoredInput,
schema: Vec<String>,
ordered_primary_key: Option<String>,
predicate: Option<ProjectedPredicate>,
attributes: ScoredSourceAttributes,
) -> Self
pub fn new_configured( table_name: &str, table: Arc<dyn TableRead>, input: ScoredInput, schema: Vec<String>, ordered_primary_key: Option<String>, predicate: Option<ProjectedPredicate>, attributes: ScoredSourceAttributes, ) -> Self
Build one physical scored source while optionally sharing the opaque score attribute with sibling scans that form one logical relation.
pub fn with_serializable_read( self, read: Option<SerializableRelationRead>, ) -> Self
Sourcepub fn with_scan_batch_bytes(self, bytes: usize) -> Self
pub fn with_scan_batch_bytes(self, bytes: usize) -> Self
Bound the bytes retained by an ordered shared or borrowed document cursor. The current row may exceed the allowance; the next row belongs to the next batch.
Sourcepub fn with_index_only(self, index_only: bool) -> Self
pub fn with_index_only(self, index_only: bool) -> Self
Project rows from the index entries the table holds for every projected field. A row-locking read and a pinned recheck still read their documents.
pub fn with_index_read_control(self, control: StorageReadControl) -> Self
pub fn with_lock_origin(self, origin: Option<SharedLockOrigin>) -> Self
pub fn with_table_oid(self, table_oid: i64) -> Self
Sourcepub fn with_recheck_pins(
self,
pins: Option<Arc<Vec<RecheckDoc>>>,
) -> Result<Self, SQLError>
pub fn with_recheck_pins( self, pins: Option<Arc<Vec<RecheckDoc>>>, ) -> Result<Self, SQLError>
Pin this scan to a tuple-local recheck candidate’s tuples. A ranked input (retrieval predicate) was re-executed against the latest index state when the recheck rebuilt the scan, so a pinned tuple survives only if the retrieval still matches it, exactly like PostgreSQL re-evaluating the WHERE clause on the substituted tuple; its score is the re-executed retrieval score. A plain scan input keeps every pinned tuple and lets the residual predicates decide.
Sourcepub fn with_qualifier(self, qualifier: &str) -> Self
pub fn with_qualifier(self, qualifier: &str) -> Self
Bind every visible column to its relation without changing public labels or copying values.
Sourcepub fn without_wildcard_columns(self) -> Self
pub fn without_wildcard_columns(self) -> Self
Open document fields are explicitly addressable without expanding the source’s declared wildcard row.
Sourcepub fn with_row_type(
self,
qualifier: &str,
row_type: Option<ColumnType>,
) -> Result<Self, SQLError>
pub fn with_row_type( self, qualifier: &str, row_type: Option<ColumnType>, ) -> Result<Self, SQLError>
Keep the catalog’s whole-row identity alongside selected fields and hidden retrieval metadata.
Trait Implementations§
Source§impl RowSource for ScoredDocumentSource
impl RowSource for ScoredDocumentSource
Source§fn schema(&self) -> &[String]
fn schema(&self) -> &[String]
Self::next_row.Source§fn supports_batched_consumption(&self) -> bool
fn supports_batched_consumption(&self) -> bool
Source§fn physical_schema(&self) -> Option<&RowSchema>
fn physical_schema(&self) -> Option<&RowSchema>
Source§fn output_ordering(&self) -> &[PhysicalOrder]
fn output_ordering(&self) -> &[PhysicalOrder]
Source§fn next_row(&mut self) -> ExecResult<Option<ResultRow>>
fn next_row(&mut self) -> ExecResult<Option<ResultRow>>
None when the source is exhausted.Source§fn next_batch(&mut self, max_rows: usize) -> ExecResult<Vec<ResultRow>>
fn next_batch(&mut self, max_rows: usize) -> ExecResult<Vec<ResultRow>>
max_rows without forcing batch-capable sources through a
row-at-a-time lock or backend call. The default preserves compatibility
for iterator-like sources.Source§fn next_physical_batch(
&mut self,
max_rows: usize,
) -> ExecResult<Vec<PhysicalRow>>
fn next_physical_batch( &mut self, max_rows: usize, ) -> ExecResult<Vec<PhysicalRow>>
Source§fn collect_materialized(
&mut self,
sink: &mut MaterializedResultSink<'_>,
) -> ExecResult<bool>
fn collect_materialized( &mut self, sink: &mut MaterializedResultSink<'_>, ) -> ExecResult<bool>
Source§fn consume_into_aggregate(
&mut self,
executor: &mut dyn AggregateExecutor,
) -> ExecResult<bool>
fn consume_into_aggregate( &mut self, executor: &mut dyn AggregateExecutor, ) -> ExecResult<bool>
false without advancing their cursor.Source§fn estimated_cardinality(&self) -> Option<u64>
fn estimated_cardinality(&self) -> Option<u64>
Auto Trait Implementations§
impl !RefUnwindSafe for ScoredDocumentSource
impl !UnwindSafe for ScoredDocumentSource
impl Freeze for ScoredDocumentSource
impl Send for ScoredDocumentSource
impl Sync for ScoredDocumentSource
impl Unpin for ScoredDocumentSource
impl UnsafeUnpin for ScoredDocumentSource
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more