W
- writable typepublic abstract class JythonFactoryBase<W extends org.apache.hadoop.io.Writable> extends Object implements ValueFactory<W>, GiraphConfigurationSettable
Constructor and Description |
---|
JythonFactoryBase() |
Modifier and Type | Method and Description |
---|---|
GraphType |
getGraphType()
Get the graph type this factory is meant for
|
abstract JythonOptions.JythonGraphTypeOptions |
getOptions()
Get the options associated with this graph type
|
StrConfOption |
jythonClassNameOption()
The
Configuration option for setting the
Jython class name in this factory implementation. |
org.apache.hadoop.io.Writable |
newJythonClassInstance()
Instantiate a new value Jython object.
|
void |
setConf(ImmutableClassesGiraphConfiguration conf)
Set the configuration to be used by this object.
|
void |
useThisFactory(org.apache.hadoop.conf.Configuration conf,
String jythonClassName)
Use this factory in the
Configuration |
Class<? extends org.apache.hadoop.io.Writable> |
writableValueClass()
The interface class for the value type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
public abstract JythonOptions.JythonGraphTypeOptions getOptions()
public GraphType getGraphType()
public StrConfOption jythonClassNameOption()
Configuration
option for setting the
Jython class name in this factory implementation.StrConfOption
public Class<? extends org.apache.hadoop.io.Writable> writableValueClass()
WritableComparable
, for
others this is Writable
public void setConf(ImmutableClassesGiraphConfiguration conf)
GiraphConfigurationSettable
setConf
in interface GiraphConfigurationSettable
conf
- Set configurationpublic org.apache.hadoop.io.Writable newJythonClassInstance()
public void useThisFactory(org.apache.hadoop.conf.Configuration conf, String jythonClassName)
Configuration
conf
- Configuration
jythonClassName
- Name of Jython class implementing value typeCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.