I
- Vertex idV
- Vertex dataE
- Edge datapublic abstract class WritableRequest<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object implements org.apache.hadoop.io.Writable, ImmutableClassesGiraphConfigurable<I,V,E>
Modifier and Type | Field and Description |
---|---|
protected ImmutableClassesGiraphConfiguration<I,V,E> |
conf
Configuration
|
static int |
UNKNOWN_SIZE
Value to use when size of the request in serialized form is not known
or too expensive to calculate
|
Constructor and Description |
---|
WritableRequest() |
Modifier and Type | Method and Description |
---|---|
int |
getClientId() |
ImmutableClassesGiraphConfiguration<I,V,E> |
getConf()
Return the configuration used by this object.
|
long |
getRequestId() |
int |
getSerializedSize()
Get the size of the request in serialized form.
|
abstract RequestType |
getType()
Get the type of the request
|
void |
readFields(DataInput input) |
void |
setClientId(int clientId) |
void |
setConf(ImmutableClassesGiraphConfiguration<I,V,E> conf)
Set the configuration to be used by this object.
|
void |
setRequestId(long requestId) |
void |
write(DataOutput output) |
public static final int UNKNOWN_SIZE
protected ImmutableClassesGiraphConfiguration<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> conf
public int getClientId()
public void setClientId(int clientId)
public long getRequestId()
public void setRequestId(long requestId)
public int getSerializedSize()
public abstract RequestType getType()
public final ImmutableClassesGiraphConfiguration<I,V,E> getConf()
ImmutableClassesGiraphConfigurable
getConf
in interface ImmutableClassesGiraphConfigurable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
public final 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>
conf
- Set configurationpublic final void readFields(DataInput input) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public final void write(DataOutput output) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.