MCPcopy Create free account
hub / github.com/apache/arrow / Seek

Method Seek

cpp/src/arrow/filesystem/gcsfs.cc:312–318  ·  view source on GitHub ↗

from Seekable

Source from the content-addressed store, hash-verified

310
311 // from Seekable
312 Status Seek(int64_t position) override {
313 if (closed()) return Status::Invalid("Cannot seek in a closed file");
314 ARROW_ASSIGN_OR_RAISE(
315 stream_, factory_(gcs::Generation(metadata_.generation()), gcs::ReadRange(),
316 gcs::ReadFromOffset(position)));
317 return Status::OK();
318 }
319
320 private:
321 Status InitializeStream() const {

Callers

nothing calls this directly

Calls 5

closedFunction · 0.85
InvalidFunction · 0.50
ARROW_ASSIGN_OR_RAISEFunction · 0.50
ReadRangeClass · 0.50
OKFunction · 0.50

Tested by

no test coverage detected