MCPcopy Create free account
hub / github.com/apache/arrow-rs / get

Method get

arrow-avro/src/reader/header.rs:95–98  ·  view source on GitHub ↗

Returns the value for a given metadata key if present

(&self, key: impl AsRef<[u8]>)

Source from the content-addressed store, hash-verified

93
94 /// Returns the value for a given metadata key if present
95 pub fn get(&self, key: impl AsRef<[u8]>) -> Option<&[u8]> {
96 self.metadata()
97 .find_map(|(k, v)| (k == key.as_ref()).then_some(v))
98 }
99
100 /// Returns the sync token for this file
101 pub fn sync(&self) -> [u8; 16] {

Callers 15

parse_default_literalMethod · 0.45
parse_decimal_attributesFunction · 0.45
union_branch_nameFunction · 0.45
resolveMethod · 0.45
parse_typeMethod · 0.45
resolve_enumsMethod · 0.45
build_writer_lookupMethod · 0.45
resolve_recordsMethod · 0.45
assert_default_storedFunction · 0.45
projectMethod · 0.45
setMethod · 0.45

Calls 2

metadataMethod · 0.45
as_refMethod · 0.45