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 null
public 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 null
public 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 null
public 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 null
public 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()
FlowElementAttributeProvider
getAttributeTypes
in interface FlowElementAttributeProvider
public <T extends FlowElementAttribute> T getAttribute(Class<T> attributeClass)
FlowElementAttributeProvider
getAttribute
in interface FlowElementAttributeProvider
T
- target classattributeClass
- target classnull
if not definedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.