Constant.java 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. package io.milvus.param;
  20. /**
  21. * Constant/static values for internal usage.
  22. */
  23. public class Constant {
  24. // default value for search key
  25. public static final String VECTOR_TAG = "$0";
  26. public static final String VECTOR_FIELD = "anns_field";
  27. public static final String VECTOR_DIM = "dim";
  28. public static final String VARCHAR_MAX_LENGTH = "max_length";
  29. public static final String TOP_K = "topk";
  30. public static final String INDEX_TYPE = "index_type";
  31. public static final String METRIC_TYPE = "metric_type";
  32. public static final String ROUND_DECIMAL = "round_decimal";
  33. public static final String PARAMS = "params";
  34. public static final String ROW_COUNT = "row_count";
  35. public static final String BUCKET = "bucket";
  36. public static final String FAILED_REASON = "failed_reason";
  37. public static final String IMPORT_FILES = "files";
  38. public static final String IMPORT_COLLECTION = "collection";
  39. public static final String IMPORT_PARTITION = "partition";
  40. public static final String DEFAULT_INDEX_NAME = "_default_idx";
  41. // max value for waiting loading collection/partition interval, unit: millisecond
  42. public static final Long MAX_WAITING_LOADING_INTERVAL = 2000L;
  43. // max value for waiting loading collection/partition timeout, unit: second
  44. public static final Long MAX_WAITING_LOADING_TIMEOUT = 300L;
  45. // max value for waiting flushing collection/partition interval, unit: millisecond
  46. public static final Long MAX_WAITING_FLUSHING_INTERVAL = 2000L;
  47. // max value for waiting flushing collection/partition timeout, unit: second
  48. public static final Long MAX_WAITING_FLUSHING_TIMEOUT = 300L;
  49. // max value for waiting create index interval, unit: millisecond
  50. public static final Long MAX_WAITING_INDEX_INTERVAL = 2000L;
  51. }