seojangho commented on a change in pull request #48: [NEMO-72] Instance-based Encoder/Decoder interface URL: https://github.com/apache/incubator-nemo/pull/48#discussion_r196273958
########## File path: compiler/frontend/beam/src/main/java/edu/snu/nemo/compiler/frontend/beam/coder/BeamDecoder.java ########## @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2018 Seoul National University + * + * 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 edu.snu.nemo.compiler.frontend.beam.coder; + +import edu.snu.nemo.common.coder.Decoder; +import org.apache.beam.sdk.coders.CoderException; +import org.apache.beam.sdk.coders.VoidCoder; + +import java.io.IOException; +import java.io.InputStream; + +/** + * {@link Decoder} from {@link org.apache.beam.sdk.coders.Coder}. + * @param <T> the type of element to encode. + */ +public final class BeamDecoder<T> implements Decoder<T> { + private final org.apache.beam.sdk.coders.Coder<T> beamCoder; Review comment: Finally we can import `org.apache.beam.sdk.coders.Coder` since we don't introduce our own version of "Coder" :slightly_smiling_face: ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
