SortType
- the type of the sorting valueRecordType
- the type of record that is to be sortedpublic static interface BufferManager.SortingBuffer<SortType,RecordType> extends BufferManager.Buffer
Modifier and Type | Method and Description |
---|---|
Iterator<RecordType> |
ascending()
Get an iterator over all of the records in ascending order.
|
Iterator<RecordType> |
descending()
Get an iterator over all of the records in descending order.
|
Iterator<RecordType> |
getAll(SortType key)
Get an iterator over all of the records that have the given sortable value.
|
Iterator<RecordType> |
getAll(SortType lowerKey,
boolean includeLowerKey,
SortType upperKey,
boolean includeUpperKey)
Get an iterator over all of the records that have a sortable value with in the specified range.
|
void |
put(SortType sortable,
RecordType record)
Put the supplied value into the buffer given its sortable value.
|
close, isEmpty, size
void put(SortType sortable, RecordType record)
sortable
- the value of the record that is to be used for sortingrecord
- the recordIterator<RecordType> ascending()
Iterator<RecordType> descending()
Iterator<RecordType> getAll(SortType key)
key
- the sortable valueIterator<RecordType> getAll(SortType lowerKey, boolean includeLowerKey, SortType upperKey, boolean includeUpperKey)
lowerKey
- the minimum sortable value; may be null if there is no minimumincludeLowerKey
- true if the values equal to or greater than lowerKey
value is to be included, or false
if only values greater than lowerKey
should be includedupperKey
- the maximum sortable value; may be null if there is no maximumincludeUpperKey
- true if the values equal to or less than upperKey
value are to be included, or false if
only values less than upperKey
should be includedCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.