All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.visenze.visearch.SearchParams Maven / Gradle / Ivy

There is a newer version: 1.14.5
Show newest version
package com.visenze.visearch;

import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.Multimap;

public class SearchParams extends BaseSearchParams {

    private String imName;

    public SearchParams(String imName) {
        super();
        setImName(imName);
    }

    private void setImName(String imName) {
        Preconditions.checkArgument(!Strings.isNullOrEmpty(imName), "im_name must not be null or empty for pre-indexed search.");
        this.imName = imName;
    }

    public String getImName() {
        return imName;
    }

    @Override
    public Multimap toMap() {
        Multimap map = super.toMap();
        map.put("im_name", imName);
        return map;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy