
public class QuerySessionBean extends Object implements QuerySessionBeanLocal
| Modifier and Type | Field and Description |
|---|---|
private LightSessionBeanLocal |
lightSessionBean |
private LookupSessionBeanLocal |
lookupSessionBean |
| Constructor and Description |
|---|
QuerySessionBean() |
| Modifier and Type | Method and Description |
|---|---|
List<GenericValue> |
getRangeQueryDatas(Range range)
This method can be called outside the Bean to make the query and get the Datas associated
|
private Set<Bucket> |
rangeQuery(Range range,
int maxLength)
Creates the Set of Bucket that could store the Records associated with the Range given (the query)
|
private Set<Bucket> |
recursiveForward(Range initialRange,
Range range,
Label region,
Set<Bucket> subRangesSet,
int maxLength)
Recursive function that search the neighbours Bucket leaves that match with the Range of the query running
|
private LightSessionBeanLocal lightSessionBean
private LookupSessionBeanLocal lookupSessionBean
private Set<Bucket> recursiveForward(Range initialRange, Range range, Label region, Set<Bucket> subRangesSet, int maxLength)
initialRange - the initial range of the query |range - the range after intersection with a neighbour's one, the methods exits when this range is empty |region - the first the lowest common ancestor, after the branchNode of a neighbour |subRangesSet - a reference to the Set to be returned, filled across the recursions |maxLength - a safety parameter to avoid infinite recursion: the methods will not use a label with length greater than maxLength (the tree height) |private Set<Bucket> rangeQuery(Range range, int maxLength)
range - |maxLength - |public List<GenericValue> getRangeQueryDatas(Range range)
getRangeQueryDatas in interface QuerySessionBeanLocalrange - |Copyright © 2018. All rights reserved.