Class TripletFields

Object
org.apache.spark.graphx.TripletFields
All Implemented Interfaces:
Serializable

public class TripletFields extends Object implements Serializable
Represents a subset of the fields of an [[EdgeTriplet]] or [[EdgeContext]]. This allows the system to populate only those fields for efficiency.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TripletFields
    Expose all the fields (source, edge, and destination).
    static final TripletFields
    Expose the destination and edge fields but not the source field.
    static final TripletFields
    Expose only the edge field and not the source or destination field.
    static final TripletFields
    None of the triplet fields are exposed.
    static final TripletFields
    Expose the source and edge fields but not the destination field.
    final boolean
    Indicates whether the destination vertex attribute is included.
    final boolean
    Indicates whether the edge attribute is included.
    final boolean
    Indicates whether the source vertex attribute is included.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a default TripletFields in which all fields are included.
    TripletFields(boolean useSrc, boolean useDst, boolean useEdge)
     
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • useSrc

      public final boolean useSrc
      Indicates whether the source vertex attribute is included.
    • useDst

      public final boolean useDst
      Indicates whether the destination vertex attribute is included.
    • useEdge

      public final boolean useEdge
      Indicates whether the edge attribute is included.
    • None

      public static final TripletFields None
      None of the triplet fields are exposed.
    • EdgeOnly

      public static final TripletFields EdgeOnly
      Expose only the edge field and not the source or destination field.
    • Src

      public static final TripletFields Src
      Expose the source and edge fields but not the destination field. (Same as Src)
    • Dst

      public static final TripletFields Dst
      Expose the destination and edge fields but not the source field. (Same as Dst)
    • All

      public static final TripletFields All
      Expose all the fields (source, edge, and destination).
  • Constructor Details

    • TripletFields

      public TripletFields()
      Constructs a default TripletFields in which all fields are included.
    • TripletFields

      public TripletFields(boolean useSrc, boolean useDst, boolean useEdge)