MCPcopy Create free account
hub / github.com/activeloopai/deeplake / scan_sample_next_block

Method scan_sample_next_block

cpp/deeplake_pg/table_am.cpp:896–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894#endif
895
896bool deeplake_table_am_routine::scan_sample_next_block(TableScanDesc scan, struct SampleScanState* scanstate)
897{
898 DeeplakeScanData* scan_data = get_scan_data(scan);
899 if (!scan_data || scan_data->sample_scan_active) { // behaves as a single-block
900 return false;
901 }
902
903 scan_data->current_sample_scanstate = scanstate;
904 scan_data->sample_scan_active = true;
905
906 return true;
907}
908
909bool deeplake_table_am_routine::scan_sample_next_tuple(TableScanDesc scan,
910 struct SampleScanState* scanstate,

Callers

nothing calls this directly

Calls 1

get_scan_dataFunction · 0.85

Tested by

no test coverage detected