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

Function n_rows

cpp/src/arrow/acero/asof_join_node.cc:817–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815/// the join row-by-row
816template <size_t MAX_TABLES>
817class CompositeTableBuilder {
818 using SliceBuilder = UnmaterializedSliceBuilder<MAX_TABLES>;
819 using CompositeTable = UnmaterializedCompositeTable<MAX_TABLES>;
820
821 public:
822 NDEBUG_EXPLICIT CompositeTableBuilder(
823 const std::vector<std::unique_ptr<InputState>>& inputs,
824 const std::shared_ptr<Schema>& schema, arrow::MemoryPool* pool,
825 DEBUG_ADD(size_t n_tables, AsofJoinNode* node))
826 : unmaterialized_table(InitUnmaterializedTable(schema, inputs, pool)),
827 DEBUG_ADD(n_tables_(n_tables), node_(node)) {
828 DCHECK_GE(n_tables_, 1);
829 DCHECK_LE(n_tables_, MAX_TABLES);
830 }
831
832 size_t n_rows() const { return unmaterialized_table.Size(); }
833
834 // Adds the latest row from the input state as a new composite reference row
835 // - LHS must have a valid key,timestep,and latest rows

Callers

nothing calls this directly

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected