You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by jihoonson <gi...@git.apache.org> on 2016/05/10 08:44:58 UTC

[GitHub] tajo pull request: TAJO-2146: Fragment interface cleanup

GitHub user jihoonson opened a pull request:

    https://github.com/apache/tajo/pull/1015

    TAJO-2146: Fragment interface cleanup

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jihoonson/tajo-2 TAJO-2146

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tajo/pull/1015.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1015
    
----
commit 9df0a14fcb7e9b92d4e120f60ae5bf3a5dca4a69
Author: Jihoon Son <ji...@apache.org>
Date:   2016-05-10T08:43:25Z

    Fragment interface cleanup

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tajo pull request: TAJO-2146: Fragment interface cleanup

Posted by hyunsik <gi...@git.apache.org>.
Github user hyunsik commented on the pull request:

    https://github.com/apache/tajo/pull/1015#issuecomment-219865160
  
    +1
    The patch looks good to me. It's a nice cleanup for the fragment and its related ones. I left a trivial comment. If you agree, you can commit after reflecting the comment.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tajo pull request: TAJO-2146: Fragment interface cleanup

Posted by jihoonson <gi...@git.apache.org>.
Github user jihoonson commented on the pull request:

    https://github.com/apache/tajo/pull/1015#issuecomment-219206124
  
    I don't know why the changes in already committed patches. 
    The key changes are
    * Recap Fragment to have a consistent interface.
    * Add FragmentSerdeHelper for user-defined fragment serialization and deserialization
    * Change fragment configuration properties in storage-default.xml. A fragment and a fragment serde helper are specified for each tablespace like below.
    ```
    <property>
        <name>tajo.storage.fragment.kind.file</name>
        <value>org.apache.tajo.storage.fragment.FileFragment</value>
      </property>
    ```
    
    * Remove RowFile.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tajo pull request: TAJO-2146: Fragment interface cleanup

Posted by jihoonson <gi...@git.apache.org>.
Github user jihoonson commented on the pull request:

    https://github.com/apache/tajo/pull/1015#issuecomment-219206143
  
    Now, ready for review.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tajo pull request: TAJO-2146: Fragment interface cleanup

Posted by jihoonson <gi...@git.apache.org>.
Github user jihoonson commented on the pull request:

    https://github.com/apache/tajo/pull/1015#issuecomment-219904666
  
    Thanks. I've changed the class name as you suggested.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tajo pull request: TAJO-2146: Fragment interface cleanup

Posted by jihoonson <gi...@git.apache.org>.
Github user jihoonson commented on the pull request:

    https://github.com/apache/tajo/pull/1015#issuecomment-219015756
  
    Not ready for review.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tajo pull request: TAJO-2146: Fragment interface cleanup

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/tajo/pull/1015


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tajo pull request: TAJO-2146: Fragment interface cleanup

Posted by blrunner <gi...@git.apache.org>.
Github user blrunner commented on the pull request:

    https://github.com/apache/tajo/pull/1015#issuecomment-218767344
  
    Could you rebase it?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tajo pull request: TAJO-2146: Fragment interface cleanup

Posted by hyunsik <gi...@git.apache.org>.
Github user hyunsik commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/1015#discussion_r63609934
  
    --- Diff: tajo-storage/tajo-storage-common/src/main/java/org/apache/tajo/storage/fragment/FragmentSerdeHelper.java ---
    @@ -0,0 +1,54 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you 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 org.apache.tajo.storage.fragment;
    +
    +import com.google.protobuf.Message;
    +import com.google.protobuf.GeneratedMessage.Builder;
    +
    +/**
    + * FragmentSerdeHelper abstracts how a fragment is serialized / deserialized to / from a Protocol Buffer message.
    + *
    + * @param <F> Fragment class
    + * @param <P> Protocol Buffer Message class corresponding to the Fragment class
    + */
    +public interface FragmentSerdeHelper<F extends Fragment, P extends Message> {
    --- End diff --
    
    IMO, FragmentSerde seems to be a more proper name. As far as I know, Helper is mostly used for a utility class.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---