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

org.frameworkset.tran.plugin.mongodb.input.MongoDBInputConfig Maven / Gradle / Ivy

Go to download

bboss etl,datastream,elasticsearch client with restful and java api without elasticsearch jar dependended.

There is a newer version: 7.3.0
Show newest version
package org.frameworkset.tran.plugin.mongodb.input;
/**
 * 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.mongodb.BasicDBObject; import org.frameworkset.tran.BaseMongoDBConfig; import org.frameworkset.tran.config.InputConfig; import org.frameworkset.tran.context.ImportContext; import org.frameworkset.tran.plugin.InputPlugin; import java.util.List; /** *

Description:

*

*

Copyright (c) 2018

* @Date 2019/9/20 11:46 * @author biaoping.yin * @version 1.0 */ public class MongoDBInputConfig extends BaseMongoDBConfig implements InputConfig { private List fetchFields; // private DBCollectionFindOptions dbCollectionFindOptions; private BasicDBObject query; // public DBCollectionFindOptions getDbCollectionFindOptions() { // return dbCollectionFindOptions; // } // // public MongoDBInputConfig setDbCollectionFindOptions(DBCollectionFindOptions dbCollectionFindOptions) { // this.dbCollectionFindOptions = dbCollectionFindOptions; // return this; // } public MongoDBInputConfig setQuery(BasicDBObject query) { this.query = query; return this; } public BasicDBObject getQuery() { return query; } public List getFetchFields() { return fetchFields; } public MongoDBInputConfig setFetchFields(List fetchFields) { this.fetchFields = fetchFields; return this; } @Override public InputPlugin getInputPlugin(ImportContext importContext) { return new MongoDBInputDatatranPlugin(importContext); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy