public class SliceQuery extends BaseQuery implements BackendQuery<SliceQuery>
StaticBuffers that lie in this range up to the given limit.
If a SliceQuery is marked static it is expected that the result set does not change.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_STATIC |
| Constructor and Description |
|---|
SliceQuery(SliceQuery query) |
SliceQuery(StaticBuffer sliceStart,
StaticBuffer sliceEnd) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
StaticBuffer |
getSliceEnd()
The end of the slice is considered to be exclusive
|
StaticBuffer |
getSliceStart()
The start of the slice is considered to be inclusive
|
EntryList |
getSubset(SliceQuery otherQuery,
EntryList otherResult) |
int |
hashCode() |
static StaticBuffer |
pointRange(StaticBuffer point) |
SliceQuery |
setLimit(int limit)
Sets the limit of the query if it wasn't specified in the constructor
|
boolean |
subsumes(SliceQuery oth) |
SliceQuery |
updateLimit(int newLimit)
Creates a new query identical to the current one but with the specified limit.
|
public static final boolean DEFAULT_STATIC
public SliceQuery(StaticBuffer sliceStart, StaticBuffer sliceEnd)
public SliceQuery(SliceQuery query)
public StaticBuffer getSliceStart()
public StaticBuffer getSliceEnd()
public boolean subsumes(SliceQuery oth)
public EntryList getSubset(SliceQuery otherQuery, EntryList otherResult)
public static StaticBuffer pointRange(StaticBuffer point)
public SliceQuery setLimit(int limit)
BaseQuerypublic SliceQuery updateLimit(int newLimit)
BackendQueryupdateLimit in interface BackendQuery<SliceQuery>Copyright © 2012–2014. All rights reserved.