public class SliceQuery extends BaseQuery implements BackendQuery<SliceQuery>
StaticBuffer
s 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.
Constructor and Description |
---|
SliceQuery(SliceQuery query) |
SliceQuery(StaticBuffer sliceStart,
StaticBuffer sliceEnd) |
SliceQuery(StaticBuffer sliceStart,
StaticBuffer sliceEnd,
String type) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(StaticBuffer buffer) |
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() |
boolean |
isDirectColumnByStartOnlyAllowed() |
static StaticBuffer |
pointRange(StaticBuffer point) |
SliceQuery |
setDirectColumnByStartOnlyAllowed(boolean allowed) |
SliceQuery |
setLimit(int limit)
Sets the limit of the query if it wasn't specified in the constructor
|
boolean |
subsumes(SliceQuery oth) |
String |
toString() |
SliceQuery |
updateLimit(int newLimit)
Creates a new query identical to the current one but with the specified limit.
|
public SliceQuery(StaticBuffer sliceStart, StaticBuffer sliceEnd, String type)
public SliceQuery(StaticBuffer sliceStart, StaticBuffer sliceEnd)
public SliceQuery(SliceQuery query)
public StaticBuffer getSliceStart()
public StaticBuffer getSliceEnd()
public SliceQuery setDirectColumnByStartOnlyAllowed(boolean allowed)
public boolean isDirectColumnByStartOnlyAllowed()
public boolean subsumes(SliceQuery oth)
public EntryList getSubset(SliceQuery otherQuery, EntryList otherResult)
public boolean contains(StaticBuffer buffer)
public static StaticBuffer pointRange(StaticBuffer point)
public SliceQuery setLimit(int limit)
BaseQuery
public SliceQuery updateLimit(int newLimit)
BackendQuery
updateLimit
in interface BackendQuery<SliceQuery>
Copyright © 2012–2024. All rights reserved.