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

Method FillUnionLike

cpp/src/arrow/c/bridge_test.cc:2733–2747  ·  view source on GitHub ↗

`legacy` selects pre-ARROW-14179 behaviour

Source from the content-addressed store, hash-verified

2731
2732 // `legacy` selects pre-ARROW-14179 behaviour
2733 void FillUnionLike(struct ArrowArray* c, UnionMode::type mode, int64_t length,
2734 int64_t null_count, int64_t offset, int64_t n_children,
2735 const void** buffers, bool legacy) {
2736 c->length = length;
2737 c->null_count = null_count;
2738 c->offset = offset;
2739 if (mode == UnionMode::SPARSE) {
2740 c->n_buffers = legacy ? 2 : 1;
2741 } else {
2742 c->n_buffers = legacy ? 3 : 2;
2743 }
2744 c->buffers = buffers;
2745 c->n_children = n_children;
2746 c->children = NLastChildren(c->n_children, c);
2747 }
2748
2749 void FillPrimitive(int64_t length, int64_t null_count, int64_t offset,
2750 const void** buffers) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected