@InterfaceAudience.Public @InterfaceStability.Stable public class EnumSetWritable<E extends Enum<E>> extends AbstractCollection<E> implements Writable, Configurable
| コンストラクタと説明 |
|---|
EnumSetWritable(EnumSet<E> value)
Construct a new EnumSetWritable.
|
EnumSetWritable(EnumSet<E> value,
Class<E> elementType)
Construct a new EnumSetWritable.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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. |
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, spliterator, streampublic EnumSetWritable(EnumSet<E> value, Class<E> elementType)
value - elementType - public EnumSetWritable(EnumSet<E> value)
value - public int size()
size インタフェース内 Collection<E extends Enum<E>>size クラス内 AbstractCollection<E extends Enum<E>>public boolean add(E e)
add インタフェース内 Collection<E extends Enum<E>>add クラス内 AbstractCollection<E extends Enum<E>>public void set(EnumSet<E> value, Class<E> elementType)
value - elementType - public void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields インタフェース内 Writablein - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.write インタフェース内 Writableout - DataOuput to serialize this object into.IOExceptionpublic boolean equals(Object o)
o is an EnumSetWritable with the same value,
or both are null.public Class<E> getElementType()
public int hashCode()
public Configuration getConf()
ConfigurablegetConf インタフェース内 Configurablepublic void setConf(Configuration conf)
ConfigurablesetConf インタフェース内 ConfigurableCopyright © 2016 Apache Software Foundation. All rights reserved.