mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 21:39:19 +08:00
55cf1088f1
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
1.1 KiB
1.1 KiB
Segment Overview
There are currently two types of Segment
- Growing segment, dynamic insert is allowed, but can not load index for fast retriving
- Sealed segment, dynamic insert is disabled, load vector index is supported
Both Segment types share the same interface, based on SegmentInterface
, External callers only need to care about the behaviour of the following interface as function declarations and corresponding constructor:
SegmentInterface
SegmentGrowing
&CreateGrowingSegment
SegmentSealed
&CreateSealedSegment
Other internal functions and are hidden as implementation details in the following classes:
SegmentInternalInterface
SegmentGrowingImpl
SegmentSealedImpl
In principle, the reusable code logic of growing / sealed is written into the 'SegmentInternalInterface' as far as possible, The different part of two classes contain more different parts
See more details about segments at: