E - type of list elementpublic class ArrayListWritable<E extends org.apache.hadoop.io.Writable> extends ArrayList<E> implements org.apache.hadoop.io.Writable
modCount| Constructor and Description |
|---|
ArrayListWritable()
Creates an ArrayListWritable object.
|
ArrayListWritable(ArrayList<E> array)
Creates an ArrayListWritable object from an ArrayList.
|
| Modifier and Type | Method and Description |
|---|---|
void |
readFields(DataInput in)
Deserializes the array.
|
String |
toString()
Generates human-readable String representation of this ArrayList.
|
void |
write(DataOutput out)
Serializes this array.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodepublic ArrayListWritable()
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.Writablein - source for raw byte representationIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writableout - where to write the raw byte representationIOExceptionpublic String toString()
toString in class AbstractCollection<E extends org.apache.hadoop.io.Writable>Copyright © 2014. All rights reserved.