// Path: src/main/java/com/qubole/presto/kinesis/decoder/csv/CsvKinesisDecoderModule.java
// public class CsvKinesisDecoderModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         bindRowDecoder(binder, CsvKinesisRowDecoder.class);
// 
//         bindFieldDecoder(binder, CsvKinesisFieldDecoder.class);
//     }
// }
// 
// Path: src/main/java/com/qubole/presto/kinesis/decoder/dummy/DummyKinesisDecoderModule.java
// public class DummyKinesisDecoderModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         bindRowDecoder(binder, DummyKinesisRowDecoder.class);
// 
//         bindFieldDecoder(binder, DummyKinesisFieldDecoder.class);
//     }
// }
// 
// Path: src/main/java/com/qubole/presto/kinesis/decoder/json/JsonKinesisDecoderModule.java
// public class JsonKinesisDecoderModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         bindRowDecoder(binder, JsonKinesisRowDecoder.class);
// 
//         bindFieldDecoder(binder, JsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, RFC2822JsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, ISO8601JsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, SecondsSinceEpochJsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, MillisecondsSinceEpochJsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, CustomDateTimeJsonKinesisFieldDecoder.class);
//     }
// }
// 
// Path: src/main/java/com/qubole/presto/kinesis/decoder/raw/RawKinesisDecoderModule.java
// public class RawKinesisDecoderModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         KinesisDecoderModule.bindRowDecoder(binder, RawKinesisRowDecoder.class);
//         KinesisDecoderModule.bindFieldDecoder(binder, RawKinesisFieldDecoder.class);
//     }
// }


import com.qubole.presto.kinesis.decoder.csv.CsvKinesisDecoderModule;
import com.qubole.presto.kinesis.decoder.dummy.DummyKinesisDecoderModule;
import com.qubole.presto.kinesis.decoder.json.JsonKinesisDecoderModule;
import com.qubole.presto.kinesis.decoder.raw.RawKinesisDecoderModule;
import com.google.inject.Binder;
import com.google.inject.Module;
import com.google.inject.Scopes;
import com.google.inject.TypeLiteral;
import com.google.inject.multibindings.Multibinder;
/*
 * 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.qubole.presto.kinesis.decoder;


/**
 *
 * Kinesis Decoder implementation of Injection Module interface. Binds all the Row and column decoder modules.
 *
 */
public class KinesisDecoderModule
        implements Module
{
    @Override
    public void configure(Binder binder)
    {
        binder.bind(KinesisDecoderRegistry.class).in(Scopes.SINGLETON);

        binder.install(new DummyKinesisDecoderModule());
// Path: src/main/java/com/qubole/presto/kinesis/decoder/csv/CsvKinesisDecoderModule.java
// public class CsvKinesisDecoderModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         bindRowDecoder(binder, CsvKinesisRowDecoder.class);
// 
//         bindFieldDecoder(binder, CsvKinesisFieldDecoder.class);
//     }
// }
// 
// Path: src/main/java/com/qubole/presto/kinesis/decoder/dummy/DummyKinesisDecoderModule.java
// public class DummyKinesisDecoderModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         bindRowDecoder(binder, DummyKinesisRowDecoder.class);
// 
//         bindFieldDecoder(binder, DummyKinesisFieldDecoder.class);
//     }
// }
// 
// Path: src/main/java/com/qubole/presto/kinesis/decoder/json/JsonKinesisDecoderModule.java
// public class JsonKinesisDecoderModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         bindRowDecoder(binder, JsonKinesisRowDecoder.class);
// 
//         bindFieldDecoder(binder, JsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, RFC2822JsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, ISO8601JsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, SecondsSinceEpochJsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, MillisecondsSinceEpochJsonKinesisFieldDecoder.class);
//         bindFieldDecoder(binder, CustomDateTimeJsonKinesisFieldDecoder.class);
//     }
// }
// 
// Path: src/main/java/com/qubole/presto/kinesis/decoder/raw/RawKinesisDecoderModule.java
// public class RawKinesisDecoderModule
//         implements Module
// {
//     @Override
//     public void configure(Binder binder)
//     {
//         KinesisDecoderModule.bindRowDecoder(binder, RawKinesisRowDecoder.class);
//         KinesisDecoderModule.bindFieldDecoder(binder, RawKinesisFieldDecoder.class);
//     }
// }


// Path: src/main/java/com/qubole/presto/kinesis/decoder/KinesisDecoderModule.java
import com.qubole.presto.kinesis.decoder.csv.CsvKinesisDecoderModule;
import com.qubole.presto.kinesis.decoder.dummy.DummyKinesisDecoderModule;
import com.qubole.presto.kinesis.decoder.json.JsonKinesisDecoderModule;
import com.qubole.presto.kinesis.decoder.raw.RawKinesisDecoderModule;
import com.google.inject.Binder;
import com.google.inject.Module;
import com.google.inject.Scopes;
import com.google.inject.TypeLiteral;
import com.google.inject.multibindings.Multibinder;

/*
 * 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.qubole.presto.kinesis.decoder;


/**
 *
 * Kinesis Decoder implementation of Injection Module interface. Binds all the Row and column decoder modules.
 *
 */
public class KinesisDecoderModule
        implements Module
{
    @Override
    public void configure(Binder binder)
    {
        binder.bind(KinesisDecoderRegistry.class).in(Scopes.SINGLETON);

        binder.install(new DummyKinesisDecoderModule());
        binder.install(new CsvKinesisDecoderModule());