public class SourceAttribute
extends java.lang.Object
An instance of this class will help locating a PigField within a PigSchema using a source MapAttribute.
Constructor and Description |
---|
SourceAttribute(MapAttribute attr)
The constructor for a PigSourceAttribute.
|
SourceAttribute(MapAttribute attr,
MapPathSpecifier pathSpec)
The constructor for a PigSourceAttribute.
|
Modifier and Type | Method and Description |
---|---|
void |
addPathPoint(MapConnectorPoint point)
Extends the path by one more connector point.
|
SourceAttribute |
clone()
Clones this instance.
|
boolean |
equals(java.lang.Object other) |
MapAttribute |
getAttr()
Gets the MapAttribute part of the Pig source attr.
|
MapPathSpecifier |
getPathSpec()
Gets the path from the source attribute.
|
boolean |
IsIgnorePathSpec()
Gets the flag indicating if the path portion must be ignored.
|
void |
setIgnorePathSpec(boolean ignorePathSpec)
Sets the flag indicating if the path portion of this class must be ignored.
|
java.lang.String |
toString() |
public SourceAttribute(MapAttribute attr, MapPathSpecifier pathSpec)
attr
- an instance of MapAttributepathSpec
- a path from the source MapAttribute to the input connector point of a MapComponent.public SourceAttribute(MapAttribute attr)
attr
- an instance of MapAttributepublic MapAttribute getAttr()
public MapPathSpecifier getPathSpec()
public void addPathPoint(MapConnectorPoint point)
point
- one additional connector point to be added to the path.public boolean IsIgnorePathSpec()
public void setIgnorePathSpec(boolean ignorePathSpec)
ignorePathSpec
- the ignore path flag.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public SourceAttribute clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object