public class LimitedSelector extends Object implements KeySelector
KeySelector that returns keys up to a given limit.SelectAll| Constructor and Description |
|---|
LimitedSelector(int limit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
include(StaticBuffer key)
Whether key should be included in the result set.
|
static LimitedSelector |
of(int limit) |
boolean |
reachedLimit()
Whether the retrieval limit has been reached.
|
public static final LimitedSelector of(int limit)
public boolean include(StaticBuffer key)
KeySelectorinclude in interface KeySelectorpublic boolean reachedLimit()
KeySelectorreachedLimit in interface KeySelectorCopyright © 2012–2014. All rights reserved.