MCPcopy Create free account
hub / github.com/Niko1221/Strata / close

Method close

engine/src/kernels/ngram.cpp:584–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584void PleTable::close() {
585 wait_prefetches();
586 impl_->reader.close();
587 impl_->pending = false;
588 impl_->locked = false; // the unmap below releases the lock
589 impl_->faulted = false;
590 impl_->mode = PleIo::Mmap;
591 delete impl_->file;
592 impl_->file = nullptr;
593 impl_->data = nullptr;
594 impl_->n_rows = 0;
595 impl_->rb = PLE_ROW_BYTES;
596 impl_->fmt = &ple_format_info(PleFormat::IQ4_NL);
597 impl_->scale = 1.0f;
598 impl_->bytes_read = 0;
599}
600
601bool PleTable::is_open() const { return impl_->data != nullptr || impl_->reader.is_open(); }
602bool PleTable::locked() const { return impl_->locked; }

Callers 6

openMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
openMethod · 0.45
openMethod · 0.45

Calls

no outgoing calls

Tested by 1