MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Flush

Method Flush

tensorflow/core/lib/io/table_builder.cc:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void TableBuilder::Flush() {
153 Rep* r = rep_;
154 assert(!r->closed);
155 if (!ok()) return;
156 if (r->data_block.empty()) return;
157 assert(!r->pending_index_entry);
158 WriteBlock(&r->data_block, &r->pending_handle);
159 if (ok()) {
160 r->pending_index_entry = true;
161 // We don't flush the underlying file as that can be slow.
162 }
163}
164
165void TableBuilder::WriteBlock(BlockBuilder* block, BlockHandle* handle) {
166 // File format contains a sequence of blocks where each block has:

Callers 6

TestAllCombinationsFunction · 0.45
TestMultipleWritesFunction · 0.45
TESTFunction · 0.45
WriteCompressedFileFunction · 0.45
VerifyFlushFunction · 0.45
TESTFunction · 0.45

Calls 1

emptyMethod · 0.45

Tested by 6

TestAllCombinationsFunction · 0.36
TestMultipleWritesFunction · 0.36
TESTFunction · 0.36
WriteCompressedFileFunction · 0.36
VerifyFlushFunction · 0.36
TESTFunction · 0.36