Package org.apache.spark.graphx
Class TripletFields
Object
org.apache.spark.graphx.TripletFields
- All Implemented Interfaces:
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
Modifier and TypeFieldDescriptionstatic 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
ConstructorDescriptionConstructs a default TripletFields in which all fields are included.TripletFields
(boolean useSrc, boolean useDst, boolean useEdge) -
Method Summary
-
Field Details
-
useSrc
public final boolean useSrcIndicates whether the source vertex attribute is included. -
useDst
public final boolean useDstIndicates whether the destination vertex attribute is included. -
useEdge
public final boolean useEdgeIndicates whether the edge attribute is included. -
None
None of the triplet fields are exposed. -
EdgeOnly
Expose only the edge field and not the source or destination field. -
Src
Expose the source and edge fields but not the destination field. (Same as Src) -
Dst
Expose the destination and edge fields but not the source field. (Same as Dst) -
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)
-