MCPcopy Create free account
hub / github.com/apache/arrow / StorageOffset

Method StorageOffset

cpp/src/arrow/array/diff.cc:412–414  ·  view source on GitHub ↗

beginning of a range for storing per-edit state in endpoint_base_ and insert_

Source from the content-addressed store, hash-verified

410
411 // beginning of a range for storing per-edit state in endpoint_base_ and insert_
412 int64_t StorageOffset(int64_t edit_count) const {
413 return edit_count * (edit_count + 1) / 2;
414 }
415
416 // given edit_count and index, augment endpoint_base_[index] with the corresponding
417 // position in target (which is only implicitly represented in edit_count, index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected