pub struct StorageOptions {
pub backend: StorageBackendConfig,
pub cache_mib: Option<u64>,
pub compression: StorageCompression,
pub min_storage_bytes: Option<u64>,
}Expand description
Storage configuration for a pipeline.
JSON schema
{
"description": "Storage configuration for a pipeline.",
"type": "object",
"properties": {
"backend": {
"default": {
"name": "default"
},
"allOf": [
{
"$ref": "#/components/schemas/StorageBackendConfig"
}
]
},
"cache_mib": {
"description": "The maximum size of the in-memory storage cache, in MiB.\n\nIf set, the specified cache size is spread across all the foreground and\nbackground threads. If unset, each foreground or background thread cache\nis limited to 256 MiB.",
"type": [
"integer",
"null"
],
"minimum": 0.0
},
"compression": {
"default": "default",
"allOf": [
{
"$ref": "#/components/schemas/StorageCompression"
}
]
},
"min_storage_bytes": {
"description": "The minimum estimated number of bytes in a batch of data to write it to\nstorage. This is provided for debugging and fine-tuning and should\nordinarily be left unset.\n\nA value of 0 will write even empty batches to storage, and nonzero\nvalues provide a threshold. `usize::MAX` would effectively disable\nstorage.\n\nThe default is 1,048,576 (1 MiB).",
"type": [
"integer",
"null"
],
"minimum": 0.0
}
}
}Fields§
§backend: StorageBackendConfig§cache_mib: Option<u64>The maximum size of the in-memory storage cache, in MiB.
If set, the specified cache size is spread across all the foreground and background threads. If unset, each foreground or background thread cache is limited to 256 MiB.
compression: StorageCompression§min_storage_bytes: Option<u64>The minimum estimated number of bytes in a batch of data to write it to storage. This is provided for debugging and fine-tuning and should ordinarily be left unset.
A value of 0 will write even empty batches to storage, and nonzero
values provide a threshold. usize::MAX would effectively disable
storage.
The default is 1,048,576 (1 MiB).
Implementations§
Source§impl StorageOptions
impl StorageOptions
pub fn builder() -> StorageOptions
Trait Implementations§
Source§impl Clone for StorageOptions
impl Clone for StorageOptions
Source§fn clone(&self) -> StorageOptions
fn clone(&self) -> StorageOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageOptions
impl Debug for StorageOptions
Source§impl<'de> Deserialize<'de> for StorageOptions
impl<'de> Deserialize<'de> for StorageOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&StorageOptions> for StorageOptions
impl From<&StorageOptions> for StorageOptions
Source§fn from(value: &StorageOptions) -> Self
fn from(value: &StorageOptions) -> Self
Converts to this type from the input type.
Source§impl From<StorageOptions> for StorageOptions
impl From<StorageOptions> for StorageOptions
Source§fn from(value: StorageOptions) -> Self
fn from(value: StorageOptions) -> Self
Converts to this type from the input type.
Source§impl Serialize for StorageOptions
impl Serialize for StorageOptions
Source§impl TryFrom<StorageOptions> for StorageOptions
impl TryFrom<StorageOptions> for StorageOptions
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StorageOptions) -> Result<Self, ConversionError>
fn try_from(value: StorageOptions) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StorageOptions
impl RefUnwindSafe for StorageOptions
impl Send for StorageOptions
impl Sync for StorageOptions
impl Unpin for StorageOptions
impl UnwindSafe for StorageOptions
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