|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
edu.umd.cloud9.io.array.ArrayListWritable<E>
E - type of list elementpublic class ArrayListWritable<E extends Writable>
Writable extension of a Java ArrayList. Elements in the list must be
homogeneous and must implement Hadoop's Writable interface. This class,
combined with Tuple, allows the user to define arbitrarily complex
data structures.
Tuple,
Serialized Form| Constructor Summary | |
|---|---|
ArrayListWritable()
Creates an ArrayListWritable object. |
|
ArrayListWritable(ArrayList<E> array)
Creates an ArrayListWritable object from an ArrayList. |
|
| Method Summary | |
|---|---|
void |
readFields(DataInput in)
Deserializes the array. |
String |
toString()
Generates human-readable String representation of this ArrayList. |
void |
write(DataOutput out)
Serializes this array. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public ArrayListWritable()
public ArrayListWritable(ArrayList<E> array)
| Method Detail |
|---|
public void readFields(DataInput in)
throws IOException
readFields in interface Writablein - source for raw byte representation
IOException
public void write(DataOutput out)
throws IOException
write in interface Writableout - where to write the raw byte representation
IOExceptionpublic String toString()
toString in class AbstractCollection<E extends Writable>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||