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

com.volcengine.service.vikingDB.common.EmbModel Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.service.vikingDB.common;

import java.util.Map;

import com.volcengine.service.vikingDB.VikingDBException;

import lombok.Data;

@Data
public class EmbModel {
    private String modelName = null;
    private Map params = null;
    private Integer isBuild = 0;
    public EmbModel setModelName(String modelName) {
        this.modelName = modelName;
        return this;
    }
    public EmbModel setParams(Map params) {
        this.params = params;
        return this;
    }
    public EmbModel build() throws Exception{
        VikingDBException vikingDBException = new VikingDBException(1000030, null, "Params does not exist");
        if(this.modelName == null){
            throw vikingDBException.getErrorCodeException(1000030, null, "ModelName does not exist");
        } else {
            this.isBuild = 1;
            return this;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy