|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SortBuffer<S>
Buffers up Storable instances allowing them to be sorted. Should any method need to throw an undeclared exception, wrap it with an UndeclaredThrowableException.
SortedCursor| Method Summary | |
|---|---|
void |
close()
Clear and close buffer. |
void |
prepare(Comparator<S> comparator)
Clears buffer and assigns a comparator for sorting. |
void |
sort()
Finish sorting buffer. |
| Methods inherited from interface java.util.Collection |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
|---|
void prepare(Comparator<S> comparator)
IllegalArgumentException - if comparator is null
void sort()
throws FetchException
IllegalStateException - if prepare was never called
FetchException
void close()
throws FetchException
FetchException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||