Struct ChunkState
Defined in File chunk.h
Struct Documentation
-
struct ChunkState
The structure for representing chunk information and for forward iteration.
This struct is partially mapped to the Flat Buffer data. Flat Buffer Reference: fb/metadata.fbs :: ChunkOffset
Public Functions
-
ChunkState(uint64_t offset, ts_t start, ts_t end)
The current chunk’s offset from the begining of the chunks section.
- Parameters:
offset[in] – the chunk position represented as an offset in bytes relative to the end of the file header.
start[in] – the earliest timestamp in a message within the chunk.
end[in] – the latest timestamp in a message within the chunk. Flat Buffer Reference: fb/metadata.fbs :: ChunkOffset :: offset
Public Members
-
uint64_t offset
The file offset of the chunk (in number of bytes.
-
uint64_t size
The size of this chunk in bytes.
-
uint64_t next_offset = {std::numeric_limits<uint64_t>::max()}
The next chunk’s offset for forward iteration.
Should work like a linked list.
This is partially synthesized from the Flat Buffers. This will link up with the next chunks offset. Value is set in ChunksPile::link_stream_chunks Flat Buffer Reference: fb/metadata.fbs :: ChunkOffset :: offset
-
ts_t start_ts
The first timestamp in the chunk in ordinality.
Flat Buffer Reference: fb/metadata.fbs :: ChunkOffset :: start_ts
-
ts_t end_ts
The last timestamp in the chunk in ordinality.
Flat Buffer Reference: fb/metadata.fbs :: ChunkOffset :: end_ts
-
ChunkValidity status = {ChunkValidity::UNKNOWN}
The validity of the current chunk.
This is synthesized and thus does not have a reference in the Flat Buffers. Value is set in Reader::verify_chunk
-
ChunkState(uint64_t offset, ts_t start, ts_t end)