public enum GraphType extends Enum<GraphType>
Enum Constant and Description |
---|
EDGE_VALUE
Edge Value
|
OUTGOING_MESSAGE_VALUE
Outgoing message value
|
VERTEX_ID
Vertex ID
|
VERTEX_VALUE
Vertex Value
|
Modifier and Type | Method and Description |
---|---|
String |
dotString()
Name of graph type with dots, like vertex.id or vertex.value
|
abstract <T extends org.apache.hadoop.io.Writable> |
factory(ImmutableClassesGiraphConfiguration conf)
Get factory for creating this graph type
|
abstract <T extends ValueFactory> |
factoryClassOption()
Get the option for the factory that creates this graph type
|
<T extends org.apache.hadoop.io.Writable> |
get(org.apache.hadoop.conf.Configuration conf)
Get class set by user for this option
|
abstract <T extends org.apache.hadoop.io.Writable> |
get(ImmutableClassesGiraphConfiguration conf)
Get class set by user for this option
|
<T extends org.apache.hadoop.io.Writable> |
interfaceClass()
Get interface class (Writable or WritableComparable) for this graph type
|
<T extends org.apache.hadoop.io.Writable> |
newInstance(ImmutableClassesGiraphConfiguration conf)
Create a new instance of this value type from configuration
|
String |
spaceString()
Name of graph type with spaces, like "vertex id" or "vertex value"
|
String |
toString() |
static GraphType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GraphType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract <T extends org.apache.hadoop.io.Writable> |
writableConfOption()
Get the class option for this graph type
|
public static final GraphType VERTEX_ID
public static final GraphType VERTEX_VALUE
public static final GraphType EDGE_VALUE
public static final GraphType OUTGOING_MESSAGE_VALUE
public static GraphType[] values()
for (GraphType c : GraphType.values()) System.out.println(c);
public static GraphType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String dotString()
public String spaceString()
public abstract <T extends org.apache.hadoop.io.Writable> Class<T> get(ImmutableClassesGiraphConfiguration conf)
T
- writable typeconf
- Configurationpublic abstract <T extends org.apache.hadoop.io.Writable> ValueFactory<T> factory(ImmutableClassesGiraphConfiguration conf)
T
- writable typeconf
- Configurationpublic abstract <T extends ValueFactory> ClassConfOption<T> factoryClassOption()
T
- writable typepublic abstract <T extends org.apache.hadoop.io.Writable> ClassConfOption<T> writableConfOption()
T
- writable typepublic <T extends org.apache.hadoop.io.Writable> Class<T> interfaceClass()
T
- writable typepublic <T extends org.apache.hadoop.io.Writable> Class<? extends T> get(org.apache.hadoop.conf.Configuration conf)
T
- writable typeconf
- Configurationpublic <T extends org.apache.hadoop.io.Writable> T newInstance(ImmutableClassesGiraphConfiguration conf)
T
- writable typeconf
- ImmutableClassesGiraphConfiguration
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.