Class SearchSimpleParam.Builder

    • Method Detail

      • withCollectionName

        public SearchSimpleParam.Builder withCollectionName​(@NonNull
                                                            @NonNull String collectionName)
        Sets the collection name. Collection name cannot be empty or null.
        Parameters:
        collectionName - collection name
        Returns:
        Builder
      • withOutputFields

        public SearchSimpleParam.Builder withOutputFields​(@NonNull
                                                          @NonNull List<String> outputFields)
        Specifies output fields (Optional).
        Parameters:
        outputFields - output fields
        Returns:
        Builder
      • withVectors

        public SearchSimpleParam.Builder withVectors​(@NonNull
                                                     @NonNull List<?> vectors)
        Sets the target vectors.
        Parameters:
        vectors - list of target vectors: if vector type is FloatVector, vectors is List of List Float; if vector type is BinaryVector, vectors is List of ByteBuffer;
        Returns:
        Builder
      • withOffset

        public SearchSimpleParam.Builder withOffset​(@NonNull
                                                    @NonNull Long offset)
        Specify a position to return results. Only take effect when the 'limit' value is specified. Default value is 0, start from begin.
        Parameters:
        offset - a value to define the position
        Returns:
        Builder
      • withLimit

        public SearchSimpleParam.Builder withLimit​(int limit)
        Specify a value to control the returned number of entities. Must be a positive value. Default value is 0, will return without limit.
        Parameters:
        limit - a value to define the limit of returned entities
        Returns:
        Builder