java.util.Map<K,Writable>, java.util.SortedMap<K,Writable>, Configurable, Writable@Public @Stable public class SortedMapWritable<K extends WritableComparable<? super K>> extends AbstractMapWritable implements java.util.SortedMap<K,Writable>
| Constructor | Description |
|---|---|
SortedMapWritable() |
default constructor.
|
SortedMapWritable(SortedMapWritable<K> other) |
Copy constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
|
java.util.Comparator<? super K> |
comparator() |
|
boolean |
containsKey(java.lang.Object key) |
|
boolean |
containsValue(java.lang.Object value) |
|
java.util.Set<java.util.Map.Entry<K,Writable>> |
entrySet() |
|
boolean |
equals(java.lang.Object obj) |
|
K |
firstKey() |
|
Writable |
get(java.lang.Object key) |
|
int |
hashCode() |
|
java.util.SortedMap<K,Writable> |
headMap(K toKey) |
|
boolean |
isEmpty() |
|
java.util.Set<K> |
keySet() |
|
K |
lastKey() |
|
Writable |
put(K key,
Writable value) |
|
void |
putAll(java.util.Map<? extends K,? extends Writable> t) |
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
Writable |
remove(java.lang.Object key) |
|
int |
size() |
|
java.util.SortedMap<K,Writable> |
subMap(K fromKey,
K toKey) |
|
java.util.SortedMap<K,Writable> |
tailMap(K fromKey) |
|
java.util.Collection<Writable> |
values() |
|
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
addToMap, copy, getClass, getConf, getId, setConfpublic SortedMapWritable()
public SortedMapWritable(SortedMapWritable<K> other)
other - the map to copy frompublic java.util.Comparator<? super K> comparator()
comparator in interface java.util.SortedMap<K extends WritableComparable<? super K>,Writable>public K firstKey()
firstKey in interface java.util.SortedMap<K extends WritableComparable<? super K>,Writable>public java.util.SortedMap<K,Writable> headMap(K toKey)
headMap in interface java.util.SortedMap<K extends WritableComparable<? super K>,Writable>public K lastKey()
lastKey in interface java.util.SortedMap<K extends WritableComparable<? super K>,Writable>public java.util.SortedMap<K,Writable> subMap(K fromKey, K toKey)
subMap in interface java.util.SortedMap<K extends WritableComparable<? super K>,Writable>public java.util.SortedMap<K,Writable> tailMap(K fromKey)
tailMap in interface java.util.SortedMap<K extends WritableComparable<? super K>,Writable>public void clear()
clear in interface java.util.Map<K extends WritableComparable<? super K>,Writable>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<K extends WritableComparable<? super K>,Writable>public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<K extends WritableComparable<? super K>,Writable>public java.util.Set<java.util.Map.Entry<K,Writable>> entrySet()
entrySet in interface java.util.Map<K extends WritableComparable<? super K>,Writable>entrySet in interface java.util.SortedMap<K extends WritableComparable<? super K>,Writable>public Writable get(java.lang.Object key)
get in interface java.util.Map<K extends WritableComparable<? super K>,Writable>public boolean isEmpty()
isEmpty in interface java.util.Map<K extends WritableComparable<? super K>,Writable>public java.util.Set<K> keySet()
keySet in interface java.util.Map<K extends WritableComparable<? super K>,Writable>keySet in interface java.util.SortedMap<K extends WritableComparable<? super K>,Writable>public Writable put(K key, Writable value)
put in interface java.util.Map<K extends WritableComparable<? super K>,Writable>public void putAll(java.util.Map<? extends K,? extends Writable> t)
putAll in interface java.util.Map<K extends WritableComparable<? super K>,Writable>public Writable remove(java.lang.Object key)
remove in interface java.util.Map<K extends WritableComparable<? super K>,Writable>public int size()
size in interface java.util.Map<K extends WritableComparable<? super K>,Writable>public java.util.Collection<Writable> values()
values in interface java.util.Map<K extends WritableComparable<? super K>,Writable>values in interface java.util.SortedMap<K extends WritableComparable<? super K>,Writable>public void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface WritablereadFields in class AbstractMapWritablein - DataInput to deseriablize this object from.java.io.IOException - any other problem for readFields.public void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.write in interface Writablewrite in class AbstractMapWritableout - DataOuput to serialize this object into.java.io.IOException - any other problem for write.public boolean equals(java.lang.Object obj)
equals in interface java.util.Map<K extends WritableComparable<? super K>,Writable>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map<K extends WritableComparable<? super K>,Writable>hashCode in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.