public static class KeyValueSerialization.KeyValueSerializer extends Object implements org.apache.hadoop.io.serializer.Serializer<KeyValue>
Modifier and Type | Field and Description |
---|---|
private DataOutputStream |
dos |
Constructor and Description |
---|
KeyValueSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
open(OutputStream os) |
void |
serialize(KeyValue kv) |
private DataOutputStream dos
public KeyValueSerializer()
public void close() throws IOException
close
in interface org.apache.hadoop.io.serializer.Serializer<KeyValue>
IOException
public void open(OutputStream os) throws IOException
open
in interface org.apache.hadoop.io.serializer.Serializer<KeyValue>
IOException
public void serialize(KeyValue kv) throws IOException
serialize
in interface org.apache.hadoop.io.serializer.Serializer<KeyValue>
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.