|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.io.AbstractMapWritable org.apache.hadoop.io.SortedMapWritable
@InterfaceAudience.Public @InterfaceStability.Stable public class SortedMapWritable
A Writable SortedMap.
Constructor Summary | |
---|---|
SortedMapWritable()
default constructor. |
|
SortedMapWritable(SortedMapWritable other)
Copy constructor. |
Method Summary | |
---|---|
void |
clear()
|
Comparator<? super WritableComparable> |
comparator()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<WritableComparable,Writable>> |
entrySet()
|
boolean |
equals(Object obj)
|
WritableComparable |
firstKey()
|
Writable |
get(Object key)
|
int |
hashCode()
|
SortedMap<WritableComparable,Writable> |
headMap(WritableComparable toKey)
|
boolean |
isEmpty()
|
Set<WritableComparable> |
keySet()
|
WritableComparable |
lastKey()
|
Writable |
put(WritableComparable key,
Writable value)
|
void |
putAll(Map<? extends WritableComparable,? extends Writable> t)
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in . |
Writable |
remove(Object key)
|
int |
size()
|
SortedMap<WritableComparable,Writable> |
subMap(WritableComparable fromKey,
WritableComparable toKey)
|
SortedMap<WritableComparable,Writable> |
tailMap(WritableComparable fromKey)
|
Collection<Writable> |
values()
|
void |
write(DataOutput out)
Serialize the fields of this object to out . |
Methods inherited from class org.apache.hadoop.io.AbstractMapWritable |
---|
addToMap, copy, getClass, getConf, getId, setConf |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortedMapWritable()
public SortedMapWritable(SortedMapWritable other)
other
- the map to copy fromMethod Detail |
---|
public Comparator<? super WritableComparable> comparator()
comparator
in interface SortedMap<WritableComparable,Writable>
public WritableComparable firstKey()
firstKey
in interface SortedMap<WritableComparable,Writable>
public SortedMap<WritableComparable,Writable> headMap(WritableComparable toKey)
headMap
in interface SortedMap<WritableComparable,Writable>
public WritableComparable lastKey()
lastKey
in interface SortedMap<WritableComparable,Writable>
public SortedMap<WritableComparable,Writable> subMap(WritableComparable fromKey, WritableComparable toKey)
subMap
in interface SortedMap<WritableComparable,Writable>
public SortedMap<WritableComparable,Writable> tailMap(WritableComparable fromKey)
tailMap
in interface SortedMap<WritableComparable,Writable>
public void clear()
clear
in interface Map<WritableComparable,Writable>
public boolean containsKey(Object key)
containsKey
in interface Map<WritableComparable,Writable>
public boolean containsValue(Object value)
containsValue
in interface Map<WritableComparable,Writable>
public Set<Map.Entry<WritableComparable,Writable>> entrySet()
entrySet
in interface Map<WritableComparable,Writable>
entrySet
in interface SortedMap<WritableComparable,Writable>
public Writable get(Object key)
get
in interface Map<WritableComparable,Writable>
public boolean isEmpty()
isEmpty
in interface Map<WritableComparable,Writable>
public Set<WritableComparable> keySet()
keySet
in interface Map<WritableComparable,Writable>
keySet
in interface SortedMap<WritableComparable,Writable>
public Writable put(WritableComparable key, Writable value)
put
in interface Map<WritableComparable,Writable>
public void putAll(Map<? extends WritableComparable,? extends Writable> t)
putAll
in interface Map<WritableComparable,Writable>
public Writable remove(Object key)
remove
in interface Map<WritableComparable,Writable>
public int size()
size
in interface Map<WritableComparable,Writable>
public Collection<Writable> values()
values
in interface Map<WritableComparable,Writable>
values
in interface SortedMap<WritableComparable,Writable>
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
readFields
in class AbstractMapWritable
in
- DataInput
to deseriablize this object from.
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
write
in class AbstractMapWritable
out
- DataOuput
to serialize this object into.
IOException
public boolean equals(Object obj)
equals
in interface Map<WritableComparable,Writable>
equals
in class Object
public int hashCode()
hashCode
in interface Map<WritableComparable,Writable>
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |