milvus-logo
Star
0
Forks
0
Get Started

Class CalcDistanceParam.Builder

  • java.lang.Object
    • io.milvus.param.dml.CalcDistanceParam.Builder
    • Method Detail

      • withVectorsLeft

        public CalcDistanceParam.Builder withVectorsLeft​(@NonNull
                                                         @NonNull java.util.List<java.util.List<java.lang.Float>> vectors)
        Sets a list of left side vectors. The list cannot be null or empty, and each vector cannot be null or empty.
        Parameters:
        vectors - a list of float list, each float list is a vector.
        Returns:
        Builder
      • withVectorsRight

        public CalcDistanceParam.Builder withVectorsRight​(@NonNull
                                                          @NonNull java.util.List<java.util.List<java.lang.Float>> vectors)
        Sets a list of right side vectors. The list cannot be null or empty, and each vector cannot be null or empty.
        Parameters:
        vectors - a list of float list, each float list is a vector.
        Returns:
        Builder
      • withMetricType

        public CalcDistanceParam.Builder withMetricType​(MetricType metricType)
        Sets metric type of calculation. Note that the current release of Milvus only support L2 and IP.
        Parameters:
        metricType - metric type
        Returns:
        Builder