pub struct SochResult<'a> { /* private fields */ }Expand description
SDK result set with token metrics
Implementations§
Source§impl<'a> SochResult<'a>
impl<'a> SochResult<'a>
Sourcepub fn new(
path: String,
schema: Arc<ArraySchema>,
columns: Vec<ColumnRef>,
predicates: Vec<ColumnPredicate>,
order_by: Option<(String, SortDirection)>,
limit: Option<usize>,
offset: Option<usize>,
) -> Self
pub fn new( path: String, schema: Arc<ArraySchema>, columns: Vec<ColumnRef>, predicates: Vec<ColumnPredicate>, order_by: Option<(String, SortDirection)>, limit: Option<usize>, offset: Option<usize>, ) -> Self
Create a new result set
Sourcepub fn with_token_limit(self, budget: usize) -> Self
pub fn with_token_limit(self, budget: usize) -> Self
Set token budget limit
Sourcepub fn metrics(&self) -> &ResultMetrics
pub fn metrics(&self) -> &ResultMetrics
Get current token metrics
Sourcepub fn column_names(&self) -> Vec<&str>
pub fn column_names(&self) -> Vec<&str>
Get column names
Sourcepub fn to_soch_string(&mut self) -> String
pub fn to_soch_string(&mut self) -> String
Collect all output as TOON string
Auto Trait Implementations§
impl<'a> Freeze for SochResult<'a>
impl<'a> RefUnwindSafe for SochResult<'a>
impl<'a> Send for SochResult<'a>
impl<'a> Sync for SochResult<'a>
impl<'a> Unpin for SochResult<'a>
impl<'a> UnwindSafe for SochResult<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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