public class KeyRangeQuery extends SliceQuery
SliceQuery to express a range for columns and a range for
keys. Selects each key on the interval
[keyStart inclusive, keyEnd exclusive) for which there exists at
least one column between [sliceStart inclusive, sliceEnd exclusive).
The limit of a KeyRangeQuery applies to the maximum number of columns returned per key which fall into the specified slice range and NOT to the maximum number of keys returned.
| Constructor and Description |
|---|
KeyRangeQuery(StaticBuffer keyStart,
StaticBuffer keyEnd,
SliceQuery query) |
KeyRangeQuery(StaticBuffer keyStart,
StaticBuffer keyEnd,
StaticBuffer sliceStart,
StaticBuffer sliceEnd) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
StaticBuffer |
getKeyEnd() |
StaticBuffer |
getKeyStart() |
int |
hashCode() |
KeyRangeQuery |
setLimit(int limit)
Sets the limit of the query if it wasn't specified in the constructor
|
boolean |
subsumes(KeyRangeQuery oth) |
String |
toString() |
KeyRangeQuery |
updateLimit(int newLimit)
Creates a new query identical to the current one but with the specified limit.
|
contains, getSliceEnd, getSliceStart, getSubset, pointRange, subsumespublic KeyRangeQuery(StaticBuffer keyStart, StaticBuffer keyEnd, StaticBuffer sliceStart, StaticBuffer sliceEnd)
public KeyRangeQuery(StaticBuffer keyStart, StaticBuffer keyEnd, SliceQuery query)
public StaticBuffer getKeyStart()
public StaticBuffer getKeyEnd()
public KeyRangeQuery setLimit(int limit)
BaseQuerysetLimit in class SliceQuerypublic KeyRangeQuery updateLimit(int newLimit)
BackendQueryupdateLimit in interface BackendQuery<SliceQuery>updateLimit in class SliceQuerypublic int hashCode()
hashCode in class SliceQuerypublic boolean equals(Object other)
equals in class SliceQuerypublic boolean subsumes(KeyRangeQuery oth)
Copyright © 2012–2015. All rights reserved.