I
- Vertex idE
- Edge valuepublic class ByteArrayVertexIdEdges<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends ByteArrayVertexIdData<I,Edge<I,E>> implements VertexIdEdges<I,E>
extendedDataOutput
Constructor and Description |
---|
ByteArrayVertexIdEdges() |
Modifier and Type | Method and Description |
---|---|
Edge<I,E> |
createData()
Create a new data object.
|
ImmutableClassesGiraphConfiguration<I,?,E> |
getConf()
Cast the
ImmutableClassesGiraphConfiguration so it can be used
to generate edge objects. |
ByteStructVertexIdEdgeIterator<I,E> |
getVertexIdEdgeIterator()
Get an iterator over the pairs.
|
void |
readData(ExtendedDataInput in,
Edge<I,E> edge)
Read a data object's fields from an
ExtendedDataInput . |
void |
writeData(ExtendedDataOutput out,
Edge<I,E> edge)
Write a data object to an
ExtendedDataOutput . |
getByteArray, readFields, write
add, add, clear, getSerializedSize, getSize, getVertexIdDataIterator, initialize, initialize, isEmpty, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, clear, getSerializedSize, getSize, getVertexIdDataIterator, initialize, initialize, isEmpty
setConf
public ImmutableClassesGiraphConfiguration<I,?,E> getConf()
ImmutableClassesGiraphConfiguration
so it can be used
to generate edge objects.getConf
in interface ImmutableClassesGiraphConfigurable
getConf
in class AbstractVertexIdData<I extends org.apache.hadoop.io.WritableComparable,Edge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>>
public Edge<I,E> createData()
VertexIdData
createData
in interface VertexIdData<I extends org.apache.hadoop.io.WritableComparable,Edge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>>
public void writeData(ExtendedDataOutput out, Edge<I,E> edge) throws IOException
VertexIdData
ExtendedDataOutput
.writeData
in interface VertexIdData<I extends org.apache.hadoop.io.WritableComparable,Edge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>>
out
- ExtendedDataOutput
edge
- Data object to writeIOException
public void readData(ExtendedDataInput in, Edge<I,E> edge) throws IOException
VertexIdData
ExtendedDataInput
.readData
in interface VertexIdData<I extends org.apache.hadoop.io.WritableComparable,Edge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>>
in
- ExtendedDataInput
edge
- Data object to fill in-placeIOException
public ByteStructVertexIdEdgeIterator<I,E> getVertexIdEdgeIterator()
VertexIdEdges
getVertexIdEdgeIterator
in interface VertexIdEdges<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.