public abstract class BcElementMapperBase<KEYIN,VALUEIN> extends ElementMapper<KEYIN,VALUEIN,org.apache.hadoop.io.Text,com.mware.ge.store.mutations.StoreMutation>
GRAPH_CONFIG_PREFIX| Constructor and Description |
|---|
BcElementMapperBase() |
| Modifier and Type | Method and Description |
|---|---|
com.mware.ge.id.IdGenerator |
getIdGenerator() |
protected org.apache.hadoop.io.Text |
getKey(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text tableName,
com.mware.ge.store.mutations.StoreMutation m) |
protected void |
map(KEYIN key,
VALUEIN line,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected abstract void |
safeMap(KEYIN key,
VALUEIN line,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
saveDataMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text dataTableName,
com.mware.ge.store.mutations.StoreMutation m) |
protected void |
saveEdgeMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text edgesTableName,
com.mware.ge.store.mutations.StoreMutation m) |
protected void |
saveExtendedDataMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text extendedDataTableName,
com.mware.ge.store.mutations.StoreMutation m) |
protected void |
saveVertexMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text verticesTableName,
com.mware.ge.store.mutations.StoreMutation m) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
addEdge, getGraph, prepareEdge, prepareEdge, prepareEdge, prepareEdge, prepareEdge, prepareVertex, prepareVertex, prepareVertexprotected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
setup in class ElementMapper<KEYIN,VALUEIN,org.apache.hadoop.io.Text,com.mware.ge.store.mutations.StoreMutation>IOExceptionInterruptedExceptionprotected abstract void safeMap(KEYIN key, VALUEIN line, org.apache.hadoop.mapreduce.Mapper.Context context) throws Exception
Exceptionprotected void saveDataMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text dataTableName,
com.mware.ge.store.mutations.StoreMutation m)
throws IOException,
InterruptedException
saveDataMutation in class ElementMapper<KEYIN,VALUEIN,org.apache.hadoop.io.Text,com.mware.ge.store.mutations.StoreMutation>IOExceptionInterruptedExceptionprotected void saveEdgeMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text edgesTableName,
com.mware.ge.store.mutations.StoreMutation m)
throws IOException,
InterruptedException
saveEdgeMutation in class ElementMapper<KEYIN,VALUEIN,org.apache.hadoop.io.Text,com.mware.ge.store.mutations.StoreMutation>IOExceptionInterruptedExceptionprotected void saveVertexMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text verticesTableName,
com.mware.ge.store.mutations.StoreMutation m)
throws IOException,
InterruptedException
saveVertexMutation in class ElementMapper<KEYIN,VALUEIN,org.apache.hadoop.io.Text,com.mware.ge.store.mutations.StoreMutation>IOExceptionInterruptedExceptionprotected void saveExtendedDataMutation(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text extendedDataTableName,
com.mware.ge.store.mutations.StoreMutation m)
throws IOException,
InterruptedException
saveExtendedDataMutation in class ElementMapper<KEYIN,VALUEIN,org.apache.hadoop.io.Text,com.mware.ge.store.mutations.StoreMutation>IOExceptionInterruptedExceptionprotected org.apache.hadoop.io.Text getKey(org.apache.hadoop.mapreduce.Mapper.Context context,
org.apache.hadoop.io.Text tableName,
com.mware.ge.store.mutations.StoreMutation m)
public com.mware.ge.id.IdGenerator getIdGenerator()
getIdGenerator in class ElementMapper<KEYIN,VALUEIN,org.apache.hadoop.io.Text,com.mware.ge.store.mutations.StoreMutation>Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.