public class DBKeyedSortedSet<Key,T> extends java.lang.Object implements HGSortedSet<T>
A database-backed HGSortedSet
implementation representing the
ordered duplicate values associated with a single key.
Constructor and Description |
---|
DBKeyedSortedSet(HGIndex<Key,T> idx,
Key key) |
DBKeyedSortedSet(HGIndex<Key,T> idx,
Key key,
java.util.Comparator<T> comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T o) |
boolean |
addAll(java.util.Collection c) |
void |
clear() |
java.util.Comparator<T> |
comparator() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection c) |
T |
first() |
HGRandomAccessResult<T> |
getSearchResult() |
java.util.SortedSet<T> |
headSet(T toElement) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator()
This iterator is intended for use when full iteration is performed on the set.
|
T |
last() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection c) |
boolean |
retainAll(java.util.Collection c) |
int |
size() |
java.util.SortedSet<T> |
subSet(T fromElement,
T toElement) |
java.util.SortedSet<T> |
tailSet(T fromElement) |
java.lang.Object[] |
toArray() |
<E> E[] |
toArray(E[] a) |
public HGRandomAccessResult<T> getSearchResult()
getSearchResult
in interface HGSortedSet<T>
public java.util.Comparator<T> comparator()
comparator
in interface java.util.SortedSet<T>
public java.util.SortedSet<T> headSet(T toElement)
headSet
in interface java.util.SortedSet<T>
public java.util.SortedSet<T> subSet(T fromElement, T toElement)
subSet
in interface java.util.SortedSet<T>
public java.util.SortedSet<T> tailSet(T fromElement)
tailSet
in interface java.util.SortedSet<T>
public boolean add(T o)
public boolean addAll(java.util.Collection c)
public void clear()
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection c)
public boolean isEmpty()
public java.util.Iterator<T> iterator()
This iterator is intended for use when full iteration is performed on the set. Otherwise, the underlying DB cursor remains open and locks DB pages forever.
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection c)
public boolean retainAll(java.util.Collection c)
public int size()
public java.lang.Object[] toArray()