M - Message datapublic abstract class ArrayListWritable<M extends org.apache.hadoop.io.Writable> extends ArrayList<M> implements org.apache.hadoop.io.Writable, org.apache.hadoop.conf.Configurable
modCount| Constructor and Description |
|---|
ArrayListWritable()
Using the default constructor requires that the user implement
setClass(), guaranteed to be invoked prior to instantiation in
readFields()
|
ArrayListWritable(ArrayListWritable<M> arrayListWritable)
Constructor with another
ArrayListWritable. |
ArrayListWritable(Class<M> refClass)
This constructor allows setting the refClass during construction.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
void |
readFields(DataInput in) |
abstract void |
setClass()
Subclasses must set the class type appropriately and can use
setClass(Class<M> refClass) to do it.
|
void |
setClass(Class<M> refClass)
This is a one-time operation to set the class type
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
write(DataOutput out) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic ArrayListWritable()
public ArrayListWritable(ArrayListWritable<M> arrayListWritable)
ArrayListWritable.arrayListWritable - Array list to be used internally.public void setClass(Class<M> refClass)
refClass - internal type classpublic abstract void setClass()
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic final org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic final void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurableCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.