|
@@ -1,29 +1,17 @@
|
|
|
-import { ReactElement } from 'react';
|
|
|
-import { LOADING_STATE } from '@/consts';
|
|
|
-import { ManageRequestMethods } from '../../types/Common';
|
|
|
-
|
|
|
-export interface PartitionData {
|
|
|
- _id: string;
|
|
|
- _name: string;
|
|
|
- _status: LOADING_STATE;
|
|
|
- _rowCount: string;
|
|
|
- _formatName: string;
|
|
|
-}
|
|
|
-
|
|
|
-export interface PartitionView extends PartitionData {
|
|
|
- _nameElement?: ReactElement;
|
|
|
- _statusElement?: ReactElement;
|
|
|
-}
|
|
|
-
|
|
|
-// delete and create
|
|
|
-export interface PartitionManageParam {
|
|
|
- collectionName: string;
|
|
|
- partitionName: string;
|
|
|
- type: ManageRequestMethods;
|
|
|
-}
|
|
|
-
|
|
|
-// load and release
|
|
|
-export interface PartitionParam {
|
|
|
- collectionName: string;
|
|
|
- partitionNames: string[];
|
|
|
-}
|
|
|
+export type Segment = {
|
|
|
+ collectionID: string;
|
|
|
+ num_rows: string;
|
|
|
+ partitionID: string;
|
|
|
+ q_collectionID: string;
|
|
|
+ q_indexID: string;
|
|
|
+ q_index_name: string;
|
|
|
+ q_mem_size: string;
|
|
|
+ q_nodeID: string;
|
|
|
+ q_nodeIds: string[];
|
|
|
+ q_num_rows: string;
|
|
|
+ q_partitionID: string;
|
|
|
+ q_segmentID: string;
|
|
|
+ q_state: string;
|
|
|
+ segmentID: string;
|
|
|
+ state: string;
|
|
|
+};
|