pub struct BlockPartitionSpec {
pub view_metadata: ViewMetadata,
pub schema: Arc<Schema>,
pub insert_range: TimeRange,
pub source_data: Arc<dyn PartitionBlocksSource>,
pub block_processors: Arc<HashMap<&'static str, Arc<dyn BlockProcessor>>>,
pub retire_match: RetireMatch,
pub same_run_ranges: Vec<TimeRange>,
}Expand description
BlockPartitionSpec processes blocks individually and out of order which works fine for measures & log entries.
Per-block dispatch keys on PartitionSourceBlock::format so a single view can
materialize blocks coming from heterogeneous wire formats (native CBOR + OTLP).
Unknown formats are warned and skipped.
Fields§
§view_metadata: ViewMetadata§schema: Arc<Schema>§insert_range: TimeRange§source_data: Arc<dyn PartitionBlocksSource>§block_processors: Arc<HashMap<&'static str, Arc<dyn BlockProcessor>>>§retire_match: RetireMatchWhich existing partitions the write replaces; see RetireMatch.
same_run_ranges: Vec<TimeRange>Insert ranges a RetireMatch::Overlap write must leave alone; empty for Containment.
Trait Implementations§
Source§impl Debug for BlockPartitionSpec
impl Debug for BlockPartitionSpec
Source§impl PartitionSpec for BlockPartitionSpec
impl PartitionSpec for BlockPartitionSpec
Source§fn write<'life0, 'async_trait>(
&'life0 self,
lake: Arc<DataLakeConnection>,
logger: Arc<dyn Logger>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
BlockPartitionSpec: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 self,
lake: Arc<DataLakeConnection>,
logger: Arc<dyn Logger>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
BlockPartitionSpec: 'async_trait,
Writes the partition to the data lake.
Source§fn write_file<'life0, 'async_trait>(
&'life0 self,
_lake: Arc<DataLakeConnection>,
_logger: Arc<dyn Logger>,
) -> Pin<Box<dyn Future<Output = Result<Partition, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn write_file<'life0, 'async_trait>(
&'life0 self,
_lake: Arc<DataLakeConnection>,
_logger: Arc<dyn Logger>,
) -> Pin<Box<dyn Future<Output = Result<Partition, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Writes the partition file without registering it, and returns the unregistered
Partition. The caller registers it (see insert_partitions_replacing) or deletes the
file.Auto Trait Implementations§
impl !RefUnwindSafe for BlockPartitionSpec
impl !UnwindSafe for BlockPartitionSpec
impl Freeze for BlockPartitionSpec
impl Send for BlockPartitionSpec
impl Sync for BlockPartitionSpec
impl Unpin for BlockPartitionSpec
impl UnsafeUnpin for BlockPartitionSpec
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].