I
- vertexId typeV
- vertexValue typeE
- edgeValue typeB
- mappingTarget typepublic class MappingReaderWrapper<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,B extends org.apache.hadoop.io.Writable> extends MappingReader<I,V,E,B>
GiraphReader
for mapping into
MappingReader
Constructor and Description |
---|
MappingReaderWrapper(GiraphReader<MappingEntry<I,B>> mappingReader)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this
MappingReader to future operations. |
MappingEntry<I,B> |
getCurrentEntry()
Get the current entry.
|
float |
getProgress()
How much of the input has the
VertexReader consumed i.e. |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Use the input split and context to setup reading the vertices.
|
boolean |
nextEntry() |
void |
setConf(ImmutableClassesGiraphConfiguration<I,V,E> conf)
Set the configuration to be used by this object.
|
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf
public MappingReaderWrapper(GiraphReader<MappingEntry<I,B>> mappingReader)
mappingReader
- user supplied mappingReaderpublic void setConf(ImmutableClassesGiraphConfiguration<I,V,E> conf)
GiraphConfigurationSettable
setConf
in interface GiraphConfigurationSettable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
setConf
in class DefaultImmutableClassesGiraphConfigurable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
conf
- Set configurationpublic boolean nextEntry() throws IOException, InterruptedException
nextEntry
in class MappingReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,B extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
public MappingEntry<I,B> getCurrentEntry() throws IOException, InterruptedException
MappingReader
getCurrentEntry
in class MappingReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,B extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
MappingReader
initialize
in class MappingReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,B extends org.apache.hadoop.io.Writable>
inputSplit
- Input split to be used for reading vertices.context
- Context from the task.IOException
InterruptedException
public void close() throws IOException
MappingReader
MappingReader
to future operations.close
in class MappingReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,B extends org.apache.hadoop.io.Writable>
IOException
public float getProgress() throws IOException, InterruptedException
MappingReader
VertexReader
consumed i.e.
has been processed by?getProgress
in class MappingReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,B extends org.apache.hadoop.io.Writable>
0.0
to 1.0
.IOException
InterruptedException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.