pub enum CatalogCommand {
Show 17 variants
QueryLastTimestamp {
data_type: NautilusDataType,
identifier: Option<String>,
reply: Sender<Result<Option<u64>>>,
},
GetMissingIntervals {
start: UnixNanos,
end: UnixNanos,
data_type: NautilusDataType,
identifier: Option<String>,
reply: Sender<Result<Vec<(u64, u64)>>>,
},
GetMissingIntervalsForIdentifiers {
start: UnixNanos,
end: UnixNanos,
data_type: NautilusDataType,
identifiers: Vec<String>,
reply: Sender<Result<AHashMap<String, Vec<(u64, u64)>>>>,
},
GetCoverageIntervalsForIdentifiers {
start: UnixNanos,
end: UnixNanos,
data_type: NautilusDataType,
identifiers: Vec<String>,
reply: Sender<Result<AHashMap<String, CoverageIntervals>>>,
},
QueryBatch {
query: CatalogQuery,
reply: Sender<Result<DataBatch>>,
},
QueryBatchAsync {
query: CatalogQuery,
on_complete: Box<dyn FnOnce(Result<DataBatch>) + Send>,
},
OpenSession {
query: CatalogQuery,
chunk_size: Option<usize>,
reply: Sender<Result<UUID4>>,
},
PullSession {
session_id: UUID4,
reply: Sender<Result<Option<DataBatch>>>,
},
PullSessionAsync {
session_id: UUID4,
on_complete: Box<dyn FnOnce(Result<Option<DataBatch>>) + Send>,
},
CloseSession {
session_id: UUID4,
reply: Sender<Result<bool>>,
},
QueryInstruments {
query: CatalogInstrumentQuery,
reply: Sender<Result<Vec<InstrumentAny>>>,
},
Write {
job: CatalogWriteJob,
reply: Sender<Result<()>>,
},
WriteAsync {
job: CatalogWriteJob,
},
WriteInstruments {
instruments: Vec<InstrumentAny>,
reply: Sender<Result<()>>,
},
WriteInstrumentsAsync {
instruments: Vec<InstrumentAny>,
},
Flush {
reply: Sender<Result<()>>,
},
Shutdown,
}Variants§
QueryLastTimestamp
GetMissingIntervals
GetMissingIntervalsForIdentifiers
GetCoverageIntervalsForIdentifiers
Fields
§
start: UnixNanos§
end: UnixNanos§
data_type: NautilusDataType§
reply: Sender<Result<AHashMap<String, CoverageIntervals>>>QueryBatch
QueryBatchAsync
OpenSession
PullSession
PullSessionAsync
CloseSession
QueryInstruments
Write
WriteAsync
Fields
§
job: CatalogWriteJobWriteInstruments
WriteInstrumentsAsync
Flush
Shutdown
Auto Trait Implementations§
impl !RefUnwindSafe for CatalogCommand
impl !Sync for CatalogCommand
impl !UnwindSafe for CatalogCommand
impl Freeze for CatalogCommand
impl Send for CatalogCommand
impl Unpin for CatalogCommand
impl UnsafeUnpin for CatalogCommand
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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