T
- Object typepublic class KryoSimpleWrapper<T> extends Object implements org.apache.hadoop.io.Writable, Boxed<T>
Constructor and Description |
---|
KryoSimpleWrapper()
Creates wrapper initialized with null.
|
KryoSimpleWrapper(T object)
Create wrapper given an object.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Unwrap the object value
|
void |
readFields(DataInput in) |
void |
set(T object)
Set wrapped object value
|
void |
write(DataOutput out) |
public KryoSimpleWrapper(T object)
object
- Object instancepublic KryoSimpleWrapper()
public T get()
public void set(T object)
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.