|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.nutch.crawl.MapWritable
@Deprecated public class MapWritable
A writable map, with a similar behavior as java.util.HashMap.
In addition to the size of key and value writable tuple two additional bytes
are stored to identify the Writable classes. This means that a maximum of
255 different class types can be used for key and value objects.
A binary-id to class mapping is defined in a static block of this class.
However it is possible to use custom implementations of Writable.
For these custom Writables we write the byte id - utf class name tuple
into the header of each MapWritable that uses these types.
| Field Summary | |
|---|---|
static org.slf4j.Logger |
LOG
Deprecated. |
| Constructor Summary | |
|---|---|
MapWritable()
Deprecated. |
|
MapWritable(MapWritable map)
Deprecated. Copy constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Deprecated. |
boolean |
containsKey(Writable key)
Deprecated. |
boolean |
containsValue(Writable value)
Deprecated. |
boolean |
equals(Object obj)
Deprecated. |
Writable |
get(Writable key)
Deprecated. |
int |
hashCode()
Deprecated. |
boolean |
isEmpty()
Deprecated. |
Set<Writable> |
keySet()
Deprecated. |
Writable |
put(Writable key,
Writable value)
Deprecated. |
void |
putAll(MapWritable map)
Deprecated. |
void |
readFields(DataInput in)
Deprecated. |
Writable |
remove(Writable key)
Deprecated. |
int |
size()
Deprecated. |
String |
toString()
Deprecated. |
Collection<Writable> |
values()
Deprecated. |
void |
write(DataOutput out)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.slf4j.Logger LOG
| Constructor Detail |
|---|
public MapWritable()
public MapWritable(MapWritable map)
map - map to copy from| Method Detail |
|---|
public void clear()
public boolean containsKey(Writable key)
public boolean containsValue(Writable value)
public Writable get(Writable key)
public int hashCode()
hashCode in class Objectpublic boolean isEmpty()
public Set<Writable> keySet()
public Writable put(Writable key,
Writable value)
public void putAll(MapWritable map)
public Writable remove(Writable key)
public int size()
public Collection<Writable> values()
public boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
public void write(DataOutput out)
throws IOException
write in interface WritableIOException
public void readFields(DataInput in)
throws IOException
readFields in interface WritableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||