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

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

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

import com.volcengine.service.vikingDB.VikingDBException;

import lombok.Data;

@Data
public class ScalarOrder {
    private String fieldName = null;
    private String order = null;
    private Integer isBuild = 0;
    public ScalarOrder(String fieldName, String order){
        this.fieldName = fieldName;
        this.order = order;
    }
    public ScalarOrder build() throws Exception{
        VikingDBException vikingDBException = new VikingDBException(1000030, null, "Params does not exist");
        if(this.fieldName == null && this.order == null){
            throw vikingDBException.getErrorCodeException(1000030, null, "fieldName and order do not exist together");
            
        } else {
            this.isBuild = 1;
            return this;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy