public final class ObjectWritable<T> extends Object implements org.apache.hadoop.io.WritableComparable<ObjectWritable>, Serializable
| Constructor and Description |
|---|
ObjectWritable() |
ObjectWritable(T t) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ObjectWritable objectWritable) |
static ObjectWritable |
empty() |
boolean |
equals(Object other) |
T |
get() |
int |
hashCode() |
boolean |
isEmpty() |
void |
readFields(DataInput input) |
void |
set(T t) |
String |
toString() |
void |
write(DataOutput output) |
public ObjectWritable()
public ObjectWritable(T t)
public T get()
public void set(T t)
public void readFields(DataInput input) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput output) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int compareTo(ObjectWritable objectWritable)
compareTo in interface Comparable<ObjectWritable>public boolean isEmpty()
public static ObjectWritable empty()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.