20 #include "glog/logging.h" 26 : num_points_(0), next_(next) {}
28 std::unique_ptr<CountingPointsProcessor>
32 return common::make_unique<CountingPointsProcessor>(next);
43 LOG(INFO) <<
"Processed " <<
num_points_ <<
" and finishing.";
47 LOG(INFO) <<
"Processed " <<
num_points_ <<
" and restarting stream.";
virtual void Process(std::unique_ptr< PointsBatch > points_batch)=0
void Process(std::unique_ptr< PointsBatch > points) override
CountingPointsProcessor(PointsProcessor *next)
FlushResult Flush() override
static std::unique_ptr< CountingPointsProcessor > FromDictionary(common::LuaParameterDictionary *dictionary, PointsProcessor *next)
virtual FlushResult Flush()=0