Package org.apache.iceberg.mr.mapred
Class Container<T>
- java.lang.Object
-
- org.apache.iceberg.mr.mapred.Container<T>
-
- Type Parameters:
T
- the Java type of the object held by this container
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
public class Container<T> extends java.lang.Object implements org.apache.hadoop.io.Writable
A simple container of objects that you can get and set.
-
-
Constructor Summary
Constructors Constructor Description Container()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
void
readFields(java.io.DataInput dataInput)
void
set(T newValue)
void
write(java.io.DataOutput dataOutput)
-
-
-
Method Detail
-
get
public T get()
-
set
public void set(T newValue)
-
write
public void write(java.io.DataOutput dataOutput)
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
-
readFields
public void readFields(java.io.DataInput dataInput)
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
-
-