|
GridGain 4.3.1e
Enterprise "Big Data" Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridgain.grid.lang.utils.GridConcurrentPhantomHashSet<E>
public class GridConcurrentPhantomHashSet<E>
Concurrent phantom hash set implementation.
![]() |
![]() |
![]() |
![]() |
| Constructor Summary | |
|---|---|
GridConcurrentPhantomHashSet()
Creates a new, empty set with a default initial capacity, load factor, and concurrencyLevel. |
|
GridConcurrentPhantomHashSet(Collection<E> c)
Constructs a new set containing the elements in the specified collection, with default load factor and an initial capacity sufficient to contain the elements in the specified collection. |
|
GridConcurrentPhantomHashSet(int initCap)
Creates a new, empty set with the specified initial capacity, and with default load factor and concurrencyLevel. |
|
GridConcurrentPhantomHashSet(int initCap,
float loadFactor,
int conLevel)
Creates a new, empty set with the specified initial capacity, load factor, and concurrency level. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(E e)
|
|
boolean |
addAll(Collection<? extends E> c)
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
boolean |
equals(Object o)
|
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
|
|
protected void |
onGc(E e)
This method is called on every element when it gets GC-ed. |
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GridConcurrentPhantomHashSet()
public GridConcurrentPhantomHashSet(int initCap)
IllegalArgumentException - if the initial capacity of
elements is negative.initCap - The initial capacity. The implementation
performs internal sizing to accommodate this many elements.
public GridConcurrentPhantomHashSet(int initCap,
float loadFactor,
int conLevel)
IllegalArgumentException - if the initial capacity is
negative or the load factor or concurrency level are
non-positive.initCap - The initial capacity. The implementation
performs internal sizing to accommodate this many elements.loadFactor - The load factor threshold, used to control resizing.
Resizing may be performed when the average number of elements per
bin exceeds this threshold.conLevel - The estimated number of concurrently
updating threads. The implementation performs internal sizing
to try to accommodate this many threads.public GridConcurrentPhantomHashSet(Collection<E> c)
c - Collection to add.| Method Detail |
|---|
public boolean add(E e)
add in interface Collection<E>add in interface Set<E>
public boolean addAll(@Nullable
Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface Set<E>
public boolean retainAll(@Nullable
Collection<?> c)
retainAll in interface Collection<E>retainAll in interface Set<E>public int size()
size in interface Collection<E>size in interface Set<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface Set<E>
public boolean contains(@Nullable
Object o)
contains in interface Collection<E>contains in interface Set<E>
public boolean containsAll(@Nullable
Collection<?> c)
containsAll in interface Collection<E>containsAll in interface Set<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface Set<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface Set<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface Set<E>public void clear()
clear in interface Collection<E>clear in interface Set<E>
public boolean remove(@Nullable
Object o)
remove in interface Collection<E>remove in interface Set<E>
public boolean removeAll(@Nullable
Collection<?> c)
removeAll in interface Collection<E>removeAll in interface Set<E>
public boolean equals(@Nullable
Object o)
equals in interface Collection<E>equals in interface Set<E>equals in class Objectpublic int hashCode()
hashCode in interface Collection<E>hashCode in interface Set<E>hashCode in class Objectprotected void onGc(E e)
e - Element that is about to get GC-ed.public String toString()
toString in class Object
|
GridGain 4.3.1e
Enterprise "Big Data" Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
GridGain - In-Memory Big Data
|
|
|