// Path: src/main/java/com/presidentio/testdatagenerator/cons/SinkTypeConst.java
// public class SinkTypeConst {
// 
//     public static final String CONSOLE = "console";
//     public static final String FILE = "file";
//     public static final String SQL_DIRECT = "sql-direct";
//     public static final String ES_DIRECT = "es-direct";
//     public static final String KAFKA = "kafka";
// 
// }
// 
// Path: src/main/java/com/presidentio/testdatagenerator/model/Output.java
// public class Output {
// 
//     private String type;
// 
//     @JsonDeserialize(contentUsing = StringDeserializer.class)
//     private Map<String, String> props;
// 
//     public String getType() {
//         return type;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// 
//     public Map<String, String> getProps() {
//         return props;
//     }
// 
//     public void setProps(Map<String, String> props) {
//         this.props = props;
//     }
// }


import com.presidentio.testdatagenerator.model.Output;
import com.presidentio.testdatagenerator.cons.SinkTypeConst;
/**
 * 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.
 */
package com.presidentio.testdatagenerator.output;


public class SinkFactory {

    public Sink getSink(Output output) {
        Sink sink;
        switch (output.getType()) {
// Path: src/main/java/com/presidentio/testdatagenerator/cons/SinkTypeConst.java
// public class SinkTypeConst {
// 
//     public static final String CONSOLE = "console";
//     public static final String FILE = "file";
//     public static final String SQL_DIRECT = "sql-direct";
//     public static final String ES_DIRECT = "es-direct";
//     public static final String KAFKA = "kafka";
// 
// }
// 
// Path: src/main/java/com/presidentio/testdatagenerator/model/Output.java
// public class Output {
// 
//     private String type;
// 
//     @JsonDeserialize(contentUsing = StringDeserializer.class)
//     private Map<String, String> props;
// 
//     public String getType() {
//         return type;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// 
//     public Map<String, String> getProps() {
//         return props;
//     }
// 
//     public void setProps(Map<String, String> props) {
//         this.props = props;
//     }
// }


// Path: src/main/java/com/presidentio/testdatagenerator/output/SinkFactory.java
import com.presidentio.testdatagenerator.model.Output;
import com.presidentio.testdatagenerator.cons.SinkTypeConst;

/**
 * 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.
 */
package com.presidentio.testdatagenerator.output;


public class SinkFactory {

    public Sink getSink(Output output) {
        Sink sink;
        switch (output.getType()) {
            case SinkTypeConst.CONSOLE: