GitHub user jegonzal opened a pull request:

    https://github.com/apache/spark/pull/3472

    Removing confusing TripletFields

    After additional discussion with @rxin, I think having all the possible 
`TripletField` options is confusing.  This pull request reduces the triplet 
fields to:
    
    ```java
      /**
       * None of the triplet fields are exposed.
       */
      public static final TripletFields None = new TripletFields(false, false, 
false);
    
      /**
       * Expose only the edge field and not the source or destination field.
       */
      public static final TripletFields EdgeOnly = new TripletFields(false, 
false, true);
    
      /**
       * Expose the source and edge fields but not the destination field. (Same 
as Src)
       */
      public static final TripletFields Src = new TripletFields(true, false, 
true);
    
      /**
       * Expose the destination and edge fields but not the source field. (Same 
as Dst)
       */
      public static final TripletFields Dst = new TripletFields(false, true, 
true);
    
      /**
       * Expose all the fields (source, edge, and destination).
       */
      public static final TripletFields All = new TripletFields(true, true, 
true);
    ```


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

    $ git pull https://github.com/jegonzal/spark SimplifyTripletFields

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

    https://github.com/apache/spark/pull/3472.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 #3472
    
----
commit 91796b52c17f5c88f1be6c7fe13d49c8e0cf64b1
Author: Joseph E. Gonzalez <[email protected]>
Date:   2014-11-26T06:26:43Z

    removing confusing triplet fields

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to