Class MapDbCollectionFactory.MemoryTillSizeXSet<V>
java.lang.Object
java.util.AbstractCollection<V>
java.util.AbstractSet<V>
org.eclipse.rdf4j.collection.factory.mapdb.MapDbCollectionFactory.MemoryTillSizeXSet<V>
- Type Parameters:
T
- of the contents of the set.
- All Implemented Interfaces:
Iterable<V>
,Collection<V>
,Set<V>
- Enclosing class:
MapDbCollectionFactory
Only create a disk based set once the contents are large enough that it starts to pay off.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends V> arg0) void
clear()
boolean
boolean
containsAll
(Collection<?> arg0) boolean
isEmpty()
iterator()
boolean
boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] arg0) Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
MemoryTillSizeXSet
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<V>
- Specified by:
add
in interfaceSet<V>
- Overrides:
add
in classAbstractCollection<V>
-
addAll
- Specified by:
addAll
in interfaceCollection<V>
- Specified by:
addAll
in interfaceSet<V>
- Overrides:
addAll
in classAbstractCollection<V>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<V>
- Specified by:
clear
in interfaceSet<V>
- Overrides:
clear
in classAbstractCollection<V>
-
contains
- Specified by:
contains
in interfaceCollection<V>
- Specified by:
contains
in interfaceSet<V>
- Overrides:
contains
in classAbstractCollection<V>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<V>
- Specified by:
containsAll
in interfaceSet<V>
- Overrides:
containsAll
in classAbstractCollection<V>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<V>
- Specified by:
isEmpty
in interfaceSet<V>
- Overrides:
isEmpty
in classAbstractCollection<V>
-
remove
- Specified by:
remove
in interfaceCollection<V>
- Specified by:
remove
in interfaceSet<V>
- Overrides:
remove
in classAbstractCollection<V>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<V>
- Specified by:
retainAll
in interfaceSet<V>
- Overrides:
retainAll
in classAbstractCollection<V>
-
toArray
- Specified by:
toArray
in interfaceCollection<V>
- Specified by:
toArray
in interfaceSet<V>
- Overrides:
toArray
in classAbstractCollection<V>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArray
in interfaceCollection<V>
- Specified by:
toArray
in interfaceSet<V>
- Overrides:
toArray
in classAbstractCollection<V>
-
iterator
-
size
public int size()- Specified by:
size
in interfaceCollection<V>
- Specified by:
size
in interfaceSet<V>
- Specified by:
size
in classAbstractCollection<V>
-