org.apache.nutch.crawl
Class MapWritable
- java.lang.Object
- org.apache.nutch.crawl.MapWritable
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
Deprecated.
Use org.apache.hadoop.io.MapWritable instead.
@Deprecated public class MapWritable extends Object implements org.apache.hadoop.io.Writable
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.
- Author:
- Stefan Groschupf
Field Summary
Fields Modifier and Type Field and Description static org.slf4j.Logger
LOG
Deprecated.
Constructor Summary
Constructors Constructor and Description MapWritable()
Deprecated.
MapWritable(MapWritable map)
Deprecated.
Copy constructor.
Method Summary
Methods Modifier and Type Method and Description void
clear()
Deprecated.
boolean
containsKey(org.apache.hadoop.io.Writable key)
Deprecated.
boolean
containsValue(org.apache.hadoop.io.Writable value)
Deprecated.
boolean
equals(Object obj)
Deprecated.
org.apache.hadoop.io.Writable
get(org.apache.hadoop.io.Writable key)
Deprecated.
int
hashCode()
Deprecated.
boolean
isEmpty()
Deprecated.
Set
keySet()
Deprecated.
org.apache.hadoop.io.Writable
put(org.apache.hadoop.io.Writable key,
org.apache.hadoop.io.Writable value)
Deprecated.
void
putAll(MapWritable map)
Deprecated.
void
readFields(DataInput in)
Deprecated.
org.apache.hadoop.io.Writable
remove(org.apache.hadoop.io.Writable key)
Deprecated.
int
size()
Deprecated.
String
toString()
Deprecated.
Collection
values()
Deprecated.
void
write(DataOutput out)
Deprecated.
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
Deprecated.
Constructor Detail
-
MapWritable
public MapWritable()
Deprecated.
-
MapWritable
public MapWritable(MapWritable map)
Deprecated.
Copy constructor. This constructor makes a deep copy, using serialization / deserialization to break any possible references to contained objects.
- Parameters:
- <code>map</code> - map to copy from
Method Detail
-
clear
public void clear()
Deprecated.
-
containsKey
public boolean containsKey(org.apache.hadoop.io.Writable key)
Deprecated.
-
containsValue
public boolean containsValue(org.apache.hadoop.io.Writable value)
Deprecated.
-
get
public org.apache.hadoop.io.Writable get(org.apache.hadoop.io.Writable key)
Deprecated.
-
hashCode
public int hashCode()
Deprecated.
- Overrides:
- <code>hashCode</code> in class <code>Object</code>
-
isEmpty
public boolean isEmpty()
Deprecated.
-
keySet
public Set<org.apache.hadoop.io.Writable> keySet()
Deprecated.
-
put
public org.apache.hadoop.io.Writable put(org.apache.hadoop.io.Writable key, org.apache.hadoop.io.Writable value)
Deprecated.
-
putAll
public void putAll(MapWritable map)
Deprecated.
-
remove
public org.apache.hadoop.io.Writable remove(org.apache.hadoop.io.Writable key)
Deprecated.
-
size
public int size()
Deprecated.
-
values
public Collection<org.apache.hadoop.io.Writable> values()
Deprecated.
-
equals
public boolean equals(Object obj)
Deprecated.
- Overrides:
- <code>equals</code> in class <code>Object</code>
-
toString
public String toString()
Deprecated.
- Overrides:
- <code>toString</code> in class <code>Object</code>
-
write
public void write(DataOutput out) throws IOException
Deprecated.
- Specified by:
- <code>write</code> in interface <code>org.apache.hadoop.io.Writable</code>
- Throws:
- <code>IOException</code>
-
readFields
public void readFields(DataInput in) throws IOException
Deprecated.
- Specified by:
- <code>readFields</code> in interface <code>org.apache.hadoop.io.Writable</code>
- Throws:
- <code>IOException</code>