Class SerialRequestDelegate<T>

java.lang.Object
org.apache.iotdb.itbase.runtime.RequestDelegate<T>
org.apache.iotdb.itbase.runtime.SerialRequestDelegate<T>

public class SerialRequestDelegate<T> extends RequestDelegate<T>
ParallelRequestDelegate will handle requests in serial. It's more efficient when the requests are just local computation.
  • Constructor Details

    • SerialRequestDelegate

      public SerialRequestDelegate(List<String> endpoints)
  • Method Details

    • requestAll

      public List<T> requestAll() throws SQLException
      Description copied from class: RequestDelegate
      Do the requests which have been added, and return a list of their return values. If some exception throws from the request, the exception thrown by each request will be compared and be thrown if they are even, or an InconsistentDataException.
      Specified by:
      requestAll in class RequestDelegate<T>
      Returns:
      the return values of all the request added in order.
      Throws:
      SQLException - if any error happens during requesting.