19 #ifndef TUPLE_SET_MACHINE_H
20 #define TUPLE_SET_MACHINE_H
36 : inputSchema(inputSchema) {
47 for (
auto& s : attsToMatch.
getAtts()) {
51 matches.push_back(counter);
58 std::cout <<
"This is bad... could not find a matching attribute\n";
59 std::cout <<
"Atts to match was: " << attsToMatch <<
"\n";
60 std::cout <<
"Input schema was: " <<
inputSchema <<
"\n";
75 output->copyColumn(input, i, counter++);
82 std::vector<uint32_t>& counts,
88 output->replicate(input, i, counter + offset, counts);
TupleSetSetupMachine(TupleSpec &inputSchema, TupleSpec &attsToIncludeInOutput)
std::vector< std::string > & getAtts()
std::shared_ptr< TupleSetSetupMachine > TupleSetSetupMachinePtr
std::vector< int > match(TupleSpec &attsToMatch)
void replicate(TupleSetPtr input, TupleSetPtr output, std::vector< uint32_t > &counts, int offset)
TupleSetSetupMachine(TupleSpec &inputSchema)
void setup(TupleSetPtr input, TupleSetPtr output)
std::vector< int > matches
std::shared_ptr< TupleSet > TupleSetPtr