Package io.hgraphdb.giraph
Class ObjectWritable<T>
- java.lang.Object
-
- io.hgraphdb.giraph.ObjectWritable<T>
-
- All Implemented Interfaces:
Serializable
,Comparable<ObjectWritable>
,org.apache.hadoop.io.Writable
,org.apache.hadoop.io.WritableComparable<ObjectWritable>
public final class ObjectWritable<T> extends Object implements org.apache.hadoop.io.WritableComparable<ObjectWritable>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectWritable()
ObjectWritable(T t)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ObjectWritable objectWritable)
static <A> ObjectWritable<A>
empty()
boolean
equals(Object other)
T
get()
static ObjectWritable<org.apache.tinkerpop.gremlin.process.computer.MapReduce.NullObject>
getNullObjectWritable()
int
hashCode()
boolean
isEmpty()
void
readFields(DataInput input)
void
set(T t)
String
toString()
void
write(DataOutput output)
-
-
-
Constructor Detail
-
ObjectWritable
public ObjectWritable()
-
ObjectWritable
public ObjectWritable(T t)
-
-
Method Detail
-
get
public T get()
-
set
public void set(T t)
-
readFields
public void readFields(DataInput input) throws IOException
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
write
public void write(DataOutput output) throws IOException
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
compareTo
public int compareTo(ObjectWritable objectWritable)
- Specified by:
compareTo
in interfaceComparable<T>
-
isEmpty
public boolean isEmpty()
-
empty
public static <A> ObjectWritable<A> empty()
-
getNullObjectWritable
public static ObjectWritable<org.apache.tinkerpop.gremlin.process.computer.MapReduce.NullObject> getNullObjectWritable()
-
-