|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
org.apache.hadoop.io.EnumSetWritable<E>
@InterfaceAudience.Public @InterfaceStability.Stable public class EnumSetWritable<E extends Enum<E>>
A Writable wrapper for EnumSet.
| Constructor Summary | |
|---|---|
EnumSetWritable(EnumSet<E> value)
Construct a new EnumSetWritable. |
|
EnumSetWritable(EnumSet<E> value,
Class<E> elementType)
Construct a new EnumSetWritable. |
|
| Method Summary | |
|---|---|
boolean |
add(E e)
|
boolean |
equals(Object o)
Returns true if o is an EnumSetWritable with the same value,
or both are null. |
EnumSet<E> |
get()
Return the value of this EnumSetWritable. |
Configuration |
getConf()
Return the configuration used by this object. |
Class<E> |
getElementType()
Returns the class of all the elements of the underlying EnumSetWriable. |
int |
hashCode()
|
Iterator<E> |
iterator()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
void |
set(EnumSet<E> value,
Class<E> elementType)
reset the EnumSetWritable with specified value and elementType. |
void |
setConf(Configuration conf)
Set the configuration to be used by this object. |
int |
size()
|
String |
toString()
|
void |
write(DataOutput out)
Serialize the fields of this object to out. |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EnumSetWritable(EnumSet<E> value,
Class<E> elementType)
value - elementType - public EnumSetWritable(EnumSet<E> value)
value - | Method Detail |
|---|
public Iterator<E> iterator()
iterator in interface Iterable<E extends Enum<E>>iterator in interface Collection<E extends Enum<E>>iterator in class AbstractCollection<E extends Enum<E>>public int size()
size in interface Collection<E extends Enum<E>>size in class AbstractCollection<E extends Enum<E>>public boolean add(E e)
add in interface Collection<E extends Enum<E>>add in class AbstractCollection<E extends Enum<E>>
public void set(EnumSet<E> value,
Class<E> elementType)
value - elementType - public EnumSet<E> get()
public void readFields(DataInput in)
throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOException
public void write(DataOutput out)
throws IOException
Writableout.
write in interface Writableout - DataOuput to serialize this object into.
IOExceptionpublic boolean equals(Object o)
o is an EnumSetWritable with the same value,
or both are null.
equals in interface Collection<E extends Enum<E>>equals in class Objectpublic Class<E> getElementType()
public int hashCode()
hashCode in interface Collection<E extends Enum<E>>hashCode in class Objectpublic String toString()
toString in class AbstractCollection<E extends Enum<E>>public Configuration getConf()
Configurable
getConf in interface Configurablepublic void setConf(Configuration conf)
Configurable
setConf in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||