public class SortedMapWritable extends AbstractMapWritable implements SortedMap<WritableComparable,Writable>
构造器和说明 |
---|
SortedMapWritable()
default constructor.
|
SortedMapWritable(SortedMapWritable other)
Copy constructor.
|
限定符和类型 | 方法和说明 |
---|---|
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 . |
public SortedMapWritable()
public SortedMapWritable(SortedMapWritable other)
other
- the map to copy frompublic Comparator<? super WritableComparable> comparator()
comparator
在接口中 SortedMap<WritableComparable,Writable>
public WritableComparable firstKey()
firstKey
在接口中 SortedMap<WritableComparable,Writable>
public SortedMap<WritableComparable,Writable> headMap(WritableComparable toKey)
headMap
在接口中 SortedMap<WritableComparable,Writable>
public WritableComparable lastKey()
lastKey
在接口中 SortedMap<WritableComparable,Writable>
public SortedMap<WritableComparable,Writable> subMap(WritableComparable fromKey, WritableComparable toKey)
subMap
在接口中 SortedMap<WritableComparable,Writable>
public SortedMap<WritableComparable,Writable> tailMap(WritableComparable fromKey)
tailMap
在接口中 SortedMap<WritableComparable,Writable>
public void clear()
clear
在接口中 Map<WritableComparable,Writable>
public boolean containsKey(Object key)
containsKey
在接口中 Map<WritableComparable,Writable>
public boolean containsValue(Object value)
containsValue
在接口中 Map<WritableComparable,Writable>
public Set<Map.Entry<WritableComparable,Writable>> entrySet()
entrySet
在接口中 Map<WritableComparable,Writable>
entrySet
在接口中 SortedMap<WritableComparable,Writable>
public boolean isEmpty()
isEmpty
在接口中 Map<WritableComparable,Writable>
public Set<WritableComparable> keySet()
keySet
在接口中 Map<WritableComparable,Writable>
keySet
在接口中 SortedMap<WritableComparable,Writable>
public Writable put(WritableComparable key, Writable value)
put
在接口中 Map<WritableComparable,Writable>
public void putAll(Map<? extends WritableComparable,? extends Writable> t)
putAll
在接口中 Map<WritableComparable,Writable>
public int size()
size
在接口中 Map<WritableComparable,Writable>
public Collection<Writable> values()
values
在接口中 Map<WritableComparable,Writable>
values
在接口中 SortedMap<WritableComparable,Writable>
public void readFields(DataInput in) throws IOException
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
在接口中 Writable
readFields
在类中 AbstractMapWritable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
out
.write
在接口中 Writable
write
在类中 AbstractMapWritable
out
- DataOuput
to serialize this object into.IOException
public boolean equals(Object obj)
Copyright © 2009 The Apache Software Foundation