public static class PendingFile.PendingFileSerializer extends java.lang.Object implements IVersionedSerializer<PendingFile>
Constructor and Description |
---|
PendingFile.PendingFileSerializer() |
Modifier and Type | Method and Description |
---|---|
PendingFile |
deserialize(java.io.DataInput dis,
int version)
Deserialize into the specified DataInputStream instance.
|
void |
serialize(PendingFile sc,
java.io.DataOutput dos,
int version)
Serialize the specified type into the specified DataOutputStream instance.
|
long |
serializedSize(PendingFile pf,
int version)
Calculate serialized size of object without actually serializing.
|
public void serialize(PendingFile sc, java.io.DataOutput dos, int version) throws java.io.IOException
IVersionedSerializer
serialize
in interface IVersionedSerializer<PendingFile>
sc
- type that needs to be serializeddos
- DataOutput into which serialization needs to happen.version
- protocol versionjava.io.IOException
public PendingFile deserialize(java.io.DataInput dis, int version) throws java.io.IOException
IVersionedSerializer
deserialize
in interface IVersionedSerializer<PendingFile>
dis
- DataInput from which deserialization needs to happen.version
- protocol versionjava.io.IOException
public long serializedSize(PendingFile pf, int version)
IVersionedSerializer
serializedSize
in interface IVersionedSerializer<PendingFile>
pf
- object to calculate serialized sizeversion
- protocol versionCopyright © 2013 The Apache Software Foundation