123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- import { LabelValuePair } from '../../../types/Common';
- import { DataTypeEnum, ConsistencyLevelEnum } from '@/consts';
- export const CONSISTENCY_LEVEL_OPTIONS: LabelValuePair[] = [
- {
- label: 'Strong',
- value: ConsistencyLevelEnum.Strong,
- },
- {
- label: 'Session',
- value: ConsistencyLevelEnum.Session,
- },
- {
- label: 'Bounded',
- value: ConsistencyLevelEnum.Bounded,
- },
- {
- label: 'Eventually',
- value: ConsistencyLevelEnum.Eventually,
- },
- ];
- export const VECTOR_FIELDS_OPTIONS: LabelValuePair[] = [
- {
- label: 'Binary Vector',
- value: DataTypeEnum.BinaryVector,
- },
- {
- label: 'Float Vector',
- value: DataTypeEnum.FloatVector,
- },
- {
- label: 'Float16 Vector',
- value: DataTypeEnum.Float16Vector,
- },
- {
- label: 'BFloat16 Vector',
- value: DataTypeEnum.BFloat16Vector,
- },
- {
- label: 'Sparse Vector',
- value: DataTypeEnum.SparseFloatVector,
- },
- ];
- export const ALL_OPTIONS: LabelValuePair[] = [
- ...VECTOR_FIELDS_OPTIONS,
- {
- label: 'Int8',
- value: DataTypeEnum.Int8,
- },
- {
- label: 'Int16',
- value: DataTypeEnum.Int16,
- },
- {
- label: 'Int32',
- value: DataTypeEnum.Int32,
- },
- {
- label: 'Int64',
- value: DataTypeEnum.Int64,
- },
- {
- label: 'Float',
- value: DataTypeEnum.Float,
- },
- {
- label: 'Double',
- value: DataTypeEnum.Double,
- },
- {
- label: 'Boolean',
- value: DataTypeEnum.Bool,
- },
- {
- label: 'VarChar',
- value: DataTypeEnum.VarChar,
- },
- {
- label: 'JSON',
- value: DataTypeEnum.JSON,
- },
- {
- label: 'Array',
- value: DataTypeEnum.Array,
- },
- ];
- export const AUTO_ID_OPTIONS: LabelValuePair[] = [
- {
- label: 'On',
- value: 'true',
- },
- {
- label: 'Off',
- value: 'false',
- },
- ];
- export const PRIMARY_FIELDS_OPTIONS: LabelValuePair[] = [
- {
- label: 'INT64',
- value: DataTypeEnum.Int64,
- },
- {
- label: 'VARCHAR',
- value: DataTypeEnum.VarChar,
- },
- ];
- export const ANALYZER_OPTIONS: LabelValuePair[] = [
- {
- label: 'Standard',
- value: 'standard',
- },
- {
- label: 'English',
- value: 'english',
- },
- {
- label: 'Chinese',
- value: 'chinese',
- },
- ];
|