public final class GraphJobMessage extends Object implements org.apache.hadoop.io.WritableComparable<GraphJobMessage>
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphJobMessage.GraphJobMessageComparator |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAP_FLAG |
static int |
VERTEX_FLAG |
static int |
VERTICES_SIZE_FLAG |
| Constructor and Description |
|---|
GraphJobMessage() |
GraphJobMessage(org.apache.hadoop.io.IntWritable size) |
GraphJobMessage(org.apache.hadoop.io.MapWritable map) |
GraphJobMessage(org.apache.hadoop.io.WritableComparable<?> vertexId,
org.apache.hadoop.io.Writable vertexValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GraphJobMessage that) |
void |
fastReadFields(DataInput in) |
org.apache.hadoop.io.MapWritable |
getMap() |
org.apache.hadoop.io.WritableComparable |
getVertexId() |
org.apache.hadoop.io.Writable |
getVertexValue() |
org.apache.hadoop.io.IntWritable |
getVerticesSize() |
boolean |
isMapMessage() |
boolean |
isVertexMessage() |
boolean |
isVerticesSizeMessage() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public static final int MAP_FLAG
public static final int VERTEX_FLAG
public static final int VERTICES_SIZE_FLAG
public GraphJobMessage()
public GraphJobMessage(org.apache.hadoop.io.MapWritable map)
public GraphJobMessage(org.apache.hadoop.io.WritableComparable<?> vertexId,
org.apache.hadoop.io.Writable vertexValue)
public GraphJobMessage(org.apache.hadoop.io.IntWritable size)
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void fastReadFields(DataInput in) throws IOException
IOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic int compareTo(GraphJobMessage that)
compareTo in interface Comparable<GraphJobMessage>public org.apache.hadoop.io.MapWritable getMap()
public org.apache.hadoop.io.WritableComparable getVertexId()
public org.apache.hadoop.io.Writable getVertexValue()
public org.apache.hadoop.io.IntWritable getVerticesSize()
public boolean isMapMessage()
public boolean isVertexMessage()
public boolean isVerticesSizeMessage()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.