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

Method get

arrow-csv/src/reader/records.rs:263–269  ·  view source on GitHub ↗
(&self, index: usize)

Source from the content-addressed store, hash-verified

261
262impl<'a> StringRecords<'a> {
263 fn get(&self, index: usize) -> StringRecord<'a> {
264 let field_idx = index * self.num_columns;
265 StringRecord {
266 data: self.data,
267 offsets: &self.offsets[field_idx..field_idx + self.num_columns + 1],
268 }
269 }
270
271 pub fn len(&self) -> usize {
272 self.num_rows

Callers 2

iterMethod · 0.45
test_basicFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_basicFunction · 0.36