org.frameworkset.tran.plugin.milvus.output.MilvusTaskCommandImpl Maven / Gradle / Ivy
Show all versions of bboss-datatran-milvus Show documentation
package org.frameworkset.tran.plugin.milvus.output;
/**
* Copyright 2008 biaoping.yin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.frameworkset.util.SimpleStringUtil;
import com.google.gson.*;
import io.milvus.v2.client.MilvusClientV2;
import io.milvus.v2.service.vector.request.InsertReq;
import io.milvus.v2.service.vector.request.UpsertReq;
import io.milvus.v2.service.vector.response.InsertResp;
import io.milvus.v2.service.vector.response.UpsertResp;
import org.frameworkset.nosql.milvus.MilvusFunction;
import org.frameworkset.nosql.milvus.MilvusHelper;
import org.frameworkset.tran.CommonRecord;
import org.frameworkset.tran.task.CommonBaseTaskCommand;
import org.frameworkset.tran.task.TaskCommandContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
/**
*
Description: import datas to database task command
*
* Copyright (c) 2018
* @Date 2019/3/1 11:32
* @author biaoping.yin
* @version 1.0
*/
public class MilvusTaskCommandImpl extends CommonBaseTaskCommand