public class DBKeyedSortedSet<Key,T> extends 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,
Comparator<T> comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T o) |
boolean |
addAll(Collection c) |
void |
clear() |
Comparator<T> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
T |
first() |
HGRandomAccessResult<T> |
getSearchResult() |
SortedSet<T> |
headSet(T toElement) |
boolean |
isEmpty() |
Iterator<T> |
iterator()
This iterator is intended for use when full iteration is performed on the set.
|
T |
last() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
SortedSet<T> |
subSet(T fromElement,
T toElement) |
SortedSet<T> |
tailSet(T fromElement) |
Object[] |
toArray() |
<E> E[] |
toArray(E[] a) |
public HGRandomAccessResult<T> getSearchResult()
getSearchResult
in interface HGSortedSet<T>
public Comparator<T> comparator()
comparator
in interface SortedSet<T>
public boolean add(T o)
public boolean addAll(Collection c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection c)
containsAll
in interface Collection<T>
containsAll
in interface Set<T>
public boolean isEmpty()
public 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(Object o)
public boolean removeAll(Collection c)
public boolean retainAll(Collection c)
public int size()
public Object[] toArray()
Copyright © 2015. All rights reserved.