public interface RQAlgorithm
| 修飾子とタイプ | メソッドと説明 |
|---|---|
List<SubRange> |
assignDelegate(Object query,
SubRange queryRange,
NavigableMap<DdllKey,Link> allLinks,
Collection<Endpoint> failedLinks)
split the given query range and assign an appropriate delegation node
for each subrange.
|
StrictMap<Id,List<SubRange>> |
assignDelegates(RQMessage msg,
List<SubRange[]> closeRanges,
List<DKRangeRValue<?>> rvals)
split the given query range and assign an appropriate delegation node
for each subrange.
|
RQMessage |
newRQMessage4Root(MessagingFramework sgmf,
Collection<SubRange> subRanges,
QueryId qid,
Object query,
TransOptions opts)
create a (subclass of) RQMessage for new range query instance.
|
void |
rqExecuteLocal(RQMessage msg,
List<SubRange> list,
List<DKRangeRValue<?>> rvals)
resolve (fill-in) range query results that are locally available.
|
RQMessage newRQMessage4Root(MessagingFramework sgmf, Collection<SubRange> subRanges, QueryId qid, Object query, TransOptions opts)
sgmf - messaging frameworksubRanges - the subranges.qid - the query id.query - the query object.opts - the transport options.List<SubRange> assignDelegate(Object query, SubRange queryRange, NavigableMap<DdllKey,Link> allLinks, Collection<Endpoint> failedLinks)
query - query parameterqueryRange - query rangeallLinks - links (including keys) to split the query rangefailedLinks - (maybe) failed linksStrictMap<Id,List<SubRange>> assignDelegates(RQMessage msg, List<SubRange[]> closeRanges, List<DKRangeRValue<?>> rvals)
msg - query messagecloseRanges - List of {[predecessor, n), [n, successor}},
where n is myself.rvals - the list to store the results.void rqExecuteLocal(RQMessage msg, List<SubRange> list, List<DKRangeRValue<?>> rvals)
msg - the query message.list - list of subranges that are locally available.rvals - list to store the resultsCopyright © 2017. All rights reserved.