Constructor and Description |
---|
PerGraphTypeEnum() |
Modifier and Type | Method and Description |
---|---|
T |
get(GraphType graphType)
Get data for given GraphType
|
T |
getEdgeValue() |
T |
getOutgoingMessage() |
T |
getVertexId() |
T |
getVertexValue() |
static <T extends Enum<T>> |
readFromConf(PerGraphTypeEnumConfOption<T> options,
org.apache.hadoop.conf.Configuration conf)
Create from options and configuration
|
void |
setEdgeValue(EnumConfOption<T> option,
org.apache.hadoop.conf.Configuration conf)
Set the edge value data from the option
|
void |
setFrom(PerGraphTypeEnumConfOption<T> options,
org.apache.hadoop.conf.Configuration conf)
Set data from per user graph type set of options
|
void |
setOutgoingMessage(EnumConfOption<T> option,
org.apache.hadoop.conf.Configuration conf)
Set the outgoing message value data from the option
|
void |
setVertexId(EnumConfOption<T> option,
org.apache.hadoop.conf.Configuration conf)
Set the vertex id data from the option
|
void |
setVertexValue(EnumConfOption<T> option,
org.apache.hadoop.conf.Configuration conf)
Set the vertex value data from the option
|
public static <T extends Enum<T>> PerGraphTypeEnum<T> readFromConf(PerGraphTypeEnumConfOption<T> options, org.apache.hadoop.conf.Configuration conf)
T
- enum typeoptions
- pre user graph type optionsconf
- configurationpublic void setFrom(PerGraphTypeEnumConfOption<T> options, org.apache.hadoop.conf.Configuration conf)
options
- per user graph type optionsconf
- Configurationpublic void setVertexId(EnumConfOption<T> option, org.apache.hadoop.conf.Configuration conf)
option
- EnumConfOption option to useconf
- Configurationpublic void setVertexValue(EnumConfOption<T> option, org.apache.hadoop.conf.Configuration conf)
option
- EnumConfOption option to useconf
- Configurationpublic void setEdgeValue(EnumConfOption<T> option, org.apache.hadoop.conf.Configuration conf)
option
- EnumConfOption option to useconf
- Configurationpublic void setOutgoingMessage(EnumConfOption<T> option, org.apache.hadoop.conf.Configuration conf)
option
- EnumConfOption option to useconf
- Configurationpublic T get(GraphType graphType)
graphType
- GraphTypepublic T getEdgeValue()
public T getOutgoingMessage()
public T getVertexId()
public T getVertexValue()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.