public class FlowElementPortDescription extends Object implements FlowElementAttributeProvider
| Constructor and Description |
|---|
FlowElementPortDescription(String name,
Type dataType,
PortDirection direction)
Creates a new instance.
|
FlowElementPortDescription(String name,
Type dataType,
PortDirection direction,
ShuffleKey shuffleKey,
FlowElementAttribute... attributes)
Creates a new instance.
|
FlowElementPortDescription(String name,
Type dataType,
PortDirection direction,
ShuffleKey shuffleKey,
List<? extends FlowElementAttribute> attributes)
Creates a new instance.
|
FlowElementPortDescription(String name,
Type dataType,
ShuffleKey shuffleKey)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends FlowElementAttribute> |
getAttribute(Class<T> attributeClass)
Returns the attribute of this.
|
Set<? extends Class<? extends FlowElementAttribute>> |
getAttributeTypes()
Returns the all available attribute types of this.
|
Type |
getDataType()
Return the data type of this port.
|
PortDirection |
getDirection()
Returns the port direction.
|
String |
getName()
Returns the port name.
|
ShuffleKey |
getShuffleKey()
Returns information of the shuffle operation which will performs on this port.
|
String |
toString() |
public FlowElementPortDescription(String name, Type dataType, PortDirection direction)
name - the port namedataType - the data type of the portdirection - the port directionIllegalArgumentException - if some parameters are nullpublic FlowElementPortDescription(String name, Type dataType, ShuffleKey shuffleKey)
name - the port namedataType - the data type of the portshuffleKey - information of the shuffle operationIllegalArgumentException - if some parameters are nullpublic FlowElementPortDescription(String name, Type dataType, PortDirection direction, ShuffleKey shuffleKey, FlowElementAttribute... attributes)
name - the port namedataType - the data type of the portdirection - the port directionshuffleKey - the shuffle key (nullable)attributes - the attributesIllegalArgumentException - if some parameters are nullpublic FlowElementPortDescription(String name, Type dataType, PortDirection direction, ShuffleKey shuffleKey, List<? extends FlowElementAttribute> attributes)
name - the port namedataType - the data type of the portdirection - the port directionshuffleKey - the shuffle key (nullable)attributes - the attributesIllegalArgumentException - if some parameters are nullpublic String getName()
public Type getDataType()
public PortDirection getDirection()
public ShuffleKey getShuffleKey()
null if this port does not support shuffle operationspublic Set<? extends Class<? extends FlowElementAttribute>> getAttributeTypes()
FlowElementAttributeProvidergetAttributeTypes in interface FlowElementAttributeProviderpublic <T extends FlowElementAttribute> T getAttribute(Class<T> attributeClass)
FlowElementAttributeProvidergetAttribute in interface FlowElementAttributeProviderT - target classattributeClass - target classnull if not definedCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.