pub struct QueryState<Q> {
pub query: Arc<Q>,
/* private fields */
}Expand description
State for a query-only service.
Fields§
§query: Arc<Q>Backend used for point and range reads.
Implementations§
Source§impl<Q> QueryState<Q>where
Q: Query,
impl<Q> QueryState<Q>where
Q: Query,
Sourcepub fn new(query: Arc<Q>) -> Self
pub fn new(query: Arc<Q>) -> Self
Creates a query service with DataFusion’s shared, unbounded memory pool.
Group state must fit in memory by default. Supply a native runtime with a
bounded pool through Self::with_runtime to enable native spilling.
The pool excludes transient input, backend, transport, and client buffers.
Sourcepub fn with_runtime(self, runtime: Arc<RuntimeEnv>) -> Self
pub fn with_runtime(self, runtime: Arc<RuntimeEnv>) -> Self
Supplies the worker’s shared native memory pool and spill configuration.
Trait Implementations§
Source§impl<Q> Clone for QueryState<Q>
impl<Q> Clone for QueryState<Q>
Auto Trait Implementations§
impl<Q> !RefUnwindSafe for QueryState<Q>
impl<Q> !UnwindSafe for QueryState<Q>
impl<Q> Freeze for QueryState<Q>
impl<Q> Send for QueryState<Q>
impl<Q> Sync for QueryState<Q>
impl<Q> Unpin for QueryState<Q>
impl<Q> UnsafeUnpin for QueryState<Q>where
Arc<Q>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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