org.apache.spark.graphx
Class TripletFields

Object
  extended by org.apache.spark.graphx.TripletFields
All Implemented Interfaces:
java.io.Serializable

public class TripletFields
extends Object
implements java.io.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:
Serialized Form

Field Summary
static TripletFields All
          Expose all the fields (source, edge, and destination).
static TripletFields Dst
          Expose the destination and edge fields but not the source field.
static TripletFields EdgeOnly
          Expose only the edge field and not the source or destination field.
static TripletFields None
          None of the triplet fields are exposed.
static TripletFields Src
          Expose the source and edge fields but not the destination field.
 boolean useDst
          Indicates whether the destination vertex attribute is included.
 boolean useEdge
          Indicates whether the edge attribute is included.
 boolean useSrc
          Indicates whether the source vertex attribute is included.
 
Constructor Summary
TripletFields()
          Constructs a default TripletFields in which all fields are included.
TripletFields(boolean useSrc, boolean useDst, boolean useEdge)
           
 
Method Summary
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 Detail

TripletFields

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


TripletFields

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