MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / inline_byte_len

Method inline_byte_len

src/compute-client/src/protocol/response.rs:204–210  ·  view source on GitHub ↗

Return the size of row bytes stored inline in this response.

(&self)

Source from the content-addressed store, hash-verified

202impl PeekResponse {
203 /// Return the size of row bytes stored inline in this response.
204 pub fn inline_byte_len(&self) -> usize {
205 match self {
206 Self::Rows(rows) => rows.iter().map(|r| r.byte_len()).sum(),
207 Self::Stashed(stashed) => stashed.inline_rows.iter().map(|r| r.byte_len()).sum(),
208 Self::Error(_) | Self::Canceled => 0,
209 }
210 }
211}
212
213/// Response from a peek whose results have been stashed into persist.

Callers 1

merge_peek_responsesFunction · 0.80

Calls 4

sumMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
byte_lenMethod · 0.45

Tested by

no test coverage detected