public class GradoopIdSet extends AbstractSet<GradoopId> implements org.apache.flink.types.Value
GradoopId instances, ignoring any duplicates.
Note that by implementing List Flink uses the Kryo serializer for
(de-)serializing the list.GradoopId,
Serialized Form| Constructor and Description |
|---|
GradoopIdSet()
Required default constructor for instantiation by serialization logic.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(GradoopId id)
Adds the given gradoop id to the set.
|
boolean |
addAll(Collection<? extends GradoopId> ids)
Adds the given gradoop ids to the set.
|
void |
addAll(GradoopIdSet ids)
Adds the given gradoop ids to the set.
|
void |
clear()
Clears the set.
|
boolean |
contains(Object identifier)
Checks if the given id is contained in the set.
|
boolean |
containsAll(Collection<?> other)
Checks if the specified ids are contained in the set.
|
boolean |
containsAll(GradoopIdSet other)
Checks if the specified ids are contained in the set.
|
boolean |
containsAny(GradoopIdSet other)
Checks if any of the specified ids is contained in the set.
|
boolean |
containsAny(Set<GradoopId> other)
Checks if any of the specified ids is contained in the set.
|
boolean |
equals(Object o) |
static GradoopIdSet |
fromByteArray(byte[] bytes)
Creates a new instance from multiple GradoopIDs represented as byte array.
|
static GradoopIdSet |
fromExisting(Collection<GradoopId> ids)
Creates a new instance from multiple GradoopIDs.
|
static GradoopIdSet |
fromExisting(GradoopId... ids)
Creates a new instance from multiple GradoopIDs.
|
int |
hashCode() |
boolean |
isEmpty()
Checks if the set is empty.
|
Iterator<GradoopId> |
iterator() |
void |
read(org.apache.flink.core.memory.DataInputView in) |
int |
size()
Returns the number of contained gradoop ids
|
byte[] |
toByteArray()
Returns the byte representation of that set.
|
String |
toString() |
void |
write(org.apache.flink.core.memory.DataOutputView out) |
removeAllremove, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, streampublic GradoopIdSet()
public static GradoopIdSet fromExisting(GradoopId... ids)
ids - array of gradoop idspublic static GradoopIdSet fromExisting(Collection<GradoopId> ids)
ids - given idspublic static GradoopIdSet fromByteArray(byte[] bytes)
bytes - byte array representing multiple gradoop idspublic boolean add(GradoopId id)
add in interface Collection<GradoopId>add in interface Set<GradoopId>add in class AbstractCollection<GradoopId>id - the id to addpublic void addAll(GradoopIdSet ids)
ids - the ids to addpublic boolean addAll(Collection<? extends GradoopId> ids)
addAll in interface Collection<GradoopId>addAll in interface Set<GradoopId>addAll in class AbstractCollection<GradoopId>ids - the ids to addpublic boolean contains(Object identifier)
contains in interface Collection<GradoopId>contains in interface Set<GradoopId>contains in class AbstractCollection<GradoopId>identifier - the id to look forpublic boolean containsAll(GradoopIdSet other)
other - the ids to look forpublic boolean containsAll(Collection<?> other)
containsAll in interface Collection<GradoopId>containsAll in interface Set<GradoopId>containsAll in class AbstractCollection<GradoopId>other - the ids to look forpublic boolean containsAny(GradoopIdSet other)
other - the ids to look forpublic boolean containsAny(Set<GradoopId> other)
other - the ids to look forpublic boolean isEmpty()
isEmpty in interface Collection<GradoopId>isEmpty in interface Set<GradoopId>isEmpty in class AbstractCollection<GradoopId>public void clear()
clear in interface Collection<GradoopId>clear in interface Set<GradoopId>clear in class AbstractCollection<GradoopId>public int size()
size in interface Collection<GradoopId>size in interface Set<GradoopId>size in class AbstractCollection<GradoopId>public byte[] toByteArray()
public void write(org.apache.flink.core.memory.DataOutputView out)
throws IOException
write in interface org.apache.flink.core.io.IOReadableWritableIOExceptionpublic void read(org.apache.flink.core.memory.DataInputView in)
throws IOException
read in interface org.apache.flink.core.io.IOReadableWritableIOExceptionpublic boolean equals(Object o)
equals in interface Collection<GradoopId>equals in interface Set<GradoopId>equals in class AbstractSet<GradoopId>public int hashCode()
hashCode in interface Collection<GradoopId>hashCode in interface Set<GradoopId>hashCode in class AbstractSet<GradoopId>public String toString()
toString in class AbstractCollection<GradoopId>Copyright © 2014 - 2019–2019 University of Leipzig. All rights reserved.