Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add segmentLevel for QuerySegmentResponse #345

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions milvus/const/milvus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ export enum SegmentState {
Flushing = 'Flushing',
}

// segment level enum
export enum SegmentLevel {
Legacy = 0, // zero value for legacy logic
L0 = 1, // L0 segment, contains delta data for current channel
L1 = 2, // L1 segment, normal segment, with no extra compaction attribute
L2 = 3, // L2 segment, segment with extra data distribution info
}

// compaction state enum
export enum CompactionState {
UndefiedState = 0,
Expand Down
5 changes: 4 additions & 1 deletion milvus/types/Data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
keyValueObj,
DataType,
SegmentState,
SegmentLevel,
ImportState,
ConsistencyLevelEnum,
collectionNameReq,
Expand Down Expand Up @@ -192,8 +193,10 @@ export interface QuerySegmentInfo {
num_rows: number;
index_name: string;
indexID: number;
nodeID: number;
nodeID: number; // deployed node id, use nodeIds instead
state: SegmentState;
nodeIds: number[];
level: SegmentLevel;
}

export interface PersistentSegmentInfo {
Expand Down
Loading