public abstract class ElementMapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
extends org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
| Modifier and Type | Field and Description |
|---|---|
static String |
GRAPH_CONFIG_PREFIX |
| Constructor and Description |
|---|
ElementMapper() |
| Modifier and Type | Method and Description |
|---|---|
Edge |
addEdge(String edgeId,
Vertex outVertex,
Vertex inVertex,
String label,
Visibility visibility,
Authorizations authorizations) |
Graph |
getGraph() |
abstract IdGenerator |
getIdGenerator() |
EdgeBuilderByVertexId |
prepareEdge(Edge edge) |
EdgeBuilderByVertexId |
prepareEdge(String edgeId,
String outVertexId,
String inVertexId,
String label,
Visibility visibility) |
EdgeBuilder |
prepareEdge(String edgeId,
Vertex outVertex,
Vertex inVertex,
String label,
Visibility visibility) |
VertexBuilder |
prepareVertex(String vertexId,
Visibility visibility) |
VertexBuilder |
prepareVertex(Vertex vertex) |
protected abstract void |
saveDataMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text dataTableName,
org.apache.accumulo.core.data.Mutation m) |
protected abstract void |
saveEdgeMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text edgesTableName,
org.apache.accumulo.core.data.Mutation m) |
protected abstract void |
saveVertexMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text verticesTableName,
org.apache.accumulo.core.data.Mutation m) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
public static final String GRAPH_CONFIG_PREFIX
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
setup in class org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>IOExceptionInterruptedExceptionprotected abstract void saveDataMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text dataTableName,
org.apache.accumulo.core.data.Mutation m)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected abstract void saveEdgeMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text edgesTableName,
org.apache.accumulo.core.data.Mutation m)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected abstract void saveVertexMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text verticesTableName,
org.apache.accumulo.core.data.Mutation m)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic VertexBuilder prepareVertex(Vertex vertex)
public VertexBuilder prepareVertex(String vertexId, Visibility visibility)
public Edge addEdge(String edgeId, Vertex outVertex, Vertex inVertex, String label, Visibility visibility, Authorizations authorizations)
public EdgeBuilderByVertexId prepareEdge(Edge edge)
public EdgeBuilderByVertexId prepareEdge(String edgeId, String outVertexId, String inVertexId, String label, Visibility visibility)
public EdgeBuilder prepareEdge(String edgeId, Vertex outVertex, Vertex inVertex, String label, Visibility visibility)
public abstract IdGenerator getIdGenerator()
public Graph getGraph()
Copyright © 2014–2015. All rights reserved.