E
- edge value typepublic class LongByteTranslateEdge<E extends org.apache.hadoop.io.Writable> extends DefaultImmutableClassesGiraphConfigurable implements TranslateEdge<org.apache.hadoop.io.LongWritable,E>
Modifier and Type | Class and Description |
---|---|
static class |
LongByteTranslateEdge.DoubleEdgeValue
Correct implementation of cloneValue when edgevalue = doublewritable
|
static class |
LongByteTranslateEdge.FloatEdgeValue
Correct implementation of cloneValue when edgevalue = floatwritable
|
static class |
LongByteTranslateEdge.IntEdgeValue
Correct implementation of cloneValue when edgevalue = intwritable
|
static class |
LongByteTranslateEdge.LongEdgeValue
Correct implementation of cloneValue when edgevalue = longwritable
|
static class |
LongByteTranslateEdge.NoEdgeValue
Correct implementation of cloneValue when edgevalue = nullwritable
|
Constructor and Description |
---|
LongByteTranslateEdge() |
Modifier and Type | Method and Description |
---|---|
E |
cloneValue(E edgeValue)
Clone edge value
|
void |
initialize(BspServiceWorker<org.apache.hadoop.io.LongWritable,? extends org.apache.hadoop.io.Writable,E> service)
Must be called before other methods can be used
|
org.apache.hadoop.io.LongWritable |
translateId(org.apache.hadoop.io.LongWritable targetId)
Translate Id & return a new instance
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf
setConf
public void initialize(BspServiceWorker<org.apache.hadoop.io.LongWritable,? extends org.apache.hadoop.io.Writable,E> service)
TranslateEdge
initialize
in interface TranslateEdge<org.apache.hadoop.io.LongWritable,E extends org.apache.hadoop.io.Writable>
service
- bsp service workerpublic org.apache.hadoop.io.LongWritable translateId(org.apache.hadoop.io.LongWritable targetId)
TranslateEdge
translateId
in interface TranslateEdge<org.apache.hadoop.io.LongWritable,E extends org.apache.hadoop.io.Writable>
targetId
- edge target Idpublic E cloneValue(E edgeValue)
TranslateEdge
cloneValue
in interface TranslateEdge<org.apache.hadoop.io.LongWritable,E extends org.apache.hadoop.io.Writable>
edgeValue
- edge valueCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.