インタフェース RQAlgorithm

既知の実装クラスのリスト:
ChordSharpRQAlgorithm

public interface RQAlgorithm
  • メソッドの詳細

    • newRQMessage4Root

      RQMessage newRQMessage4Root​(MessagingFramework sgmf, Collection<SubRange> subRanges, QueryId qid, Object query, TransOptions opts)
      create a (subclass of) RQMessage for new range query instance.
      パラメータ:
      sgmf - messaging framework
      subRanges - the subranges.
      qid - the query id.
      query - the query object.
      opts - the transport options.
      戻り値:
      subclass of RQMessage
    • assignDelegate

      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.
      パラメータ:
      query - query parameter
      queryRange - query range
      allLinks - links (including keys) to split the query range
      failedLinks - (maybe) failed links
      戻り値:
      subranges
    • assignDelegates

      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.
      パラメータ:
      msg - query message
      closeRanges - List of {[predecessor, n), [n, successor}}, where n is myself.
      rvals - the list to store the results.
      戻り値:
      the map of id and subranges.
    • rqExecuteLocal

      void rqExecuteLocal​(RQMessage msg, List<SubRange> list, List<DKRangeRValue<?>> rvals)
      resolve (fill-in) range query results that are locally available.
      パラメータ:
      msg - the query message.
      list - list of subranges that are locally available.
      rvals - list to store the results