public class PersistentDeserializer extends Object implements org.apache.hadoop.io.serializer.Deserializer<Persistent>
SpecificDatumReader
with BinaryDecoder
.Constructor and Description |
---|
PersistentDeserializer(Class<? extends Persistent> c,
boolean reuseObjects) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Persistent |
deserialize(Persistent persistent) |
void |
open(InputStream in) |
public PersistentDeserializer(Class<? extends Persistent> c, boolean reuseObjects)
public void open(InputStream in) throws IOException
open
in interface org.apache.hadoop.io.serializer.Deserializer<Persistent>
IOException
public void close() throws IOException
close
in interface org.apache.hadoop.io.serializer.Deserializer<Persistent>
IOException
public Persistent deserialize(Persistent persistent) throws IOException
deserialize
in interface org.apache.hadoop.io.serializer.Deserializer<Persistent>
IOException
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.