I
- Vertex IDV
- Vertex ValueE
- Edge Valuepublic class DefaultComputationFactory<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object implements ComputationFactory<I,V,E,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
Constructor and Description |
---|
DefaultComputationFactory() |
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration(ImmutableClassesGiraphConfiguration<I,V,E> conf)
Check that the Configuration passed in is setup correctly to run a job.
|
String |
computationName(GiraphConfiguration conf)
Get name of this particular computation
|
Computation<I,V,E,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> |
createComputation(ImmutableClassesGiraphConfiguration<I,V,E> conf)
Get Computation object
|
void |
initialize(ImmutableClassesGiraphConfiguration<I,V,E> conf)
One time initialization before compute calls.
|
public void initialize(ImmutableClassesGiraphConfiguration<I,V,E> conf)
ComputationFactory
initialize
in interface ComputationFactory<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
conf
- Configurationpublic Computation<I,V,E,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> createComputation(ImmutableClassesGiraphConfiguration<I,V,E> conf)
ComputationFactory
createComputation
in interface ComputationFactory<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
conf
- Configurationpublic void checkConfiguration(ImmutableClassesGiraphConfiguration<I,V,E> conf)
ComputationFactory
checkConfiguration
in interface ComputationFactory<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
conf
- Configuration to check.public String computationName(GiraphConfiguration conf)
ComputationFactory
computationName
in interface ComputationFactory<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
conf
- ConfigurationCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.