K
- the class of keyV
- the class of valuepublic class KeyValueWritable<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.WritableComparable> extends Object implements org.apache.hadoop.io.WritableComparable<KeyValueWritable<K,V>>
Constructor and Description |
---|
KeyValueWritable() |
KeyValueWritable(K key,
V value) |
protected K extends org.apache.hadoop.io.WritableComparable key
protected V extends org.apache.hadoop.io.WritableComparable value
public K getKey()
public void setKey(K key)
public V getValue()
public void setValue(V value)
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public int compareTo(KeyValueWritable<K,V> o)
compareTo
in interface Comparable<KeyValueWritable<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.WritableComparable>>
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.