SegmentState
This enum represents the state of a segment, as returned by ListPersistentSegments() and ListQuerySegments().
pub enum SegmentState {
Unknown,
NotExist,
Growing,
Sealed,
Flushed,
Flushing,
Dropped,
}
VARIANTS:
UnknownThe segment state is unknown. This is the default.
NotExistThe segment does not exist.
GrowingThe segment is actively accepting new inserts.
SealedThe segment is sealed and no longer accepts inserts.
FlushedThe segment is sealed and has been flushed to storage.
FlushingThe segment is in the process of being flushed.
DroppedThe segment has been dropped.
Example
for segment in resp.segments() {
if segment.get_state() == SegmentState::Flushed {
println!("segment {} is flushed", segment.get_segment_id());
}
}