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

Method Init

cpp/src/arrow/compute/row/encode_internal.cc:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace compute {
24
25void RowTableEncoder::Init(const std::vector<KeyColumnMetadata>& cols, int row_alignment,
26 int string_alignment) {
27 row_metadata_.FromColumnMetadataVector(cols, row_alignment, string_alignment);
28 uint32_t num_cols = row_metadata_.num_cols();
29 uint32_t num_varbinary_cols = row_metadata_.num_varbinary_cols();
30 batch_all_cols_.resize(num_cols);
31 batch_varbinary_cols_.resize(num_varbinary_cols);
32 batch_varbinary_cols_base_offsets_.resize(num_varbinary_cols);
33}
34
35void RowTableEncoder::PrepareKeyColumnArrays(int64_t start_row, int64_t num_rows,
36 const std::vector<KeyColumnArray>& cols_in) {

Callers

nothing calls this directly

Calls 4

num_colsMethod · 0.80
num_varbinary_colsMethod · 0.80
resizeMethod · 0.80

Tested by

no test coverage detected