test_class.declarator: uuids = {
          UUID.fromString("e6af74a8-4711-4609-a94f-2cbfab9695e5"),
          UUID.fromString("281336f4-2a52-4535-847c-11a4d3682ec1"),
          UUID.fromString("c32b8d37-89bd-4dfe-a7d5-5f0258692d05"),
          UUID.fromString("973fe99f-5715-4dfd-a28d-5b3751b26ab5"),
          UUID.fromString("0aabb840-bab6-474b-9f08-c18527a2b47f") }
test_class.original_string: Object[] uuids = {
          UUID.fromString("e6af74a8-4711-4609-a94f-2cbfab9695e5"),
          UUID.fromString("281336f4-2a52-4535-847c-11a4d3682ec1"),
          UUID.fromString("c32b8d37-89bd-4dfe-a7d5-5f0258692d05"),
          UUID.fromString("973fe99f-5715-4dfd-a28d-5b3751b26ab5"),
          UUID.fromString("0aabb840-bab6-474b-9f08-c18527a2b47f") };
test_class.type: Object[]
test_class.var_name: uuids
test_class.file: db/cassandra-intro/src/main/java/com/async/ResultSetsTest.java
test_class.identifier: ResultSetsTest
test_class.superclass: extends TestBase
test_case.body: @Test
      public void should_query_partitions_as_list() throws Exception {
          Future<List<ResultSet>> future = ResultSets.queryAllAsList(session,
                  "SELECT * FROM users WHERE id = ?",
                  uuids);
  
          for (ResultSet rs : future.get()) {
  
          }
  
          List<String> names = Lists.transform(future.get(100, MILLISECONDS),
              (ResultSet rs) -> rs.one().getString("name"));
  
          Assertions.assertThat(names).containsOnly("user1", "user2", "user3", "user4", "user5");
      }
test_case.class_method_signature: ResultSetsTest.should_query_partitions_as_list()
test_case.full_signature: @Test public void should_query_partitions_as_list()
test_case.identifier: should_query_partitions_as_list
test_case.invocations: queryAllAsList get transform get getString one containsOnly assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_query_partitions_as_list()
focal_class.file: db/cassandra-intro/src/main/java/com/async/ResultSets.java
focal_class.identifier: ResultSets
focal_class.class_method_signature: ResultSets.queryAllAsList(Session session, String query, Object... partitionKeys)
focal_class.full_signature: public static Future<List<ResultSet>> queryAllAsList(Session session, String query, Object... partitionKeys)
focal_class.identifier: queryAllAsList
focal_class.modifiers: public static
focal_class.parameters: (Session session, String query, Object... partitionKeys)
focal_class.return: Future<List<ResultSet>>
focal_class.signature: Future<List<ResultSet>> queryAllAsList(Session session, String query, Object... partitionKeys)
focal_class.class_method_signature: ResultSets.queryAll(Session session, String query, Object... partitionKeys)
focal_class.full_signature: public static List<ListenableFuture<ResultSet>> queryAll(Session session, String query, Object... partitionKeys)
focal_class.identifier: queryAll
focal_class.modifiers: public static
focal_class.parameters: (Session session, String query, Object... partitionKeys)
focal_class.return: List<ListenableFuture<ResultSet>>
focal_class.signature: List<ListenableFuture<ResultSet>> queryAll(Session session, String query, Object... partitionKeys)
focal_class.class_method_signature: ResultSets.queryAllAsObservable(Session session, String query, Object... partitionKeys)
focal_class.full_signature: public static Observable<ResultSet> queryAllAsObservable(Session session, String query, Object... partitionKeys)
focal_class.identifier: queryAllAsObservable
focal_class.modifiers: public static
focal_class.parameters: (Session session, String query, Object... partitionKeys)
focal_class.return: Observable<ResultSet>
focal_class.signature: Observable<ResultSet> queryAllAsObservable(Session session, String query, Object... partitionKeys)
focal_class.class_method_signature: ResultSets.sendQueries(Session session, String query, Object[] partitionKeys)
focal_class.full_signature: private static List<ResultSetFuture> sendQueries(Session session, String query, Object[] partitionKeys)
focal_class.identifier: sendQueries
focal_class.modifiers: private static
focal_class.parameters: (Session session, String query, Object[] partitionKeys)
focal_class.return: List<ResultSetFuture>
focal_class.signature: List<ResultSetFuture> sendQueries(Session session, String query, Object[] partitionKeys)
focal_method.body: public static Future<List<ResultSet>> queryAllAsList(Session session, String query, Object... partitionKeys) {
          //一系列的ResultSetFuture, RSF中是ResultSet,代表ResultSet的返回结果, 即每个ResultSetFuture中是一个ResultSet的结果
          List<ResultSetFuture> futures = sendQueries(session, query, partitionKeys);
          //转换为只有一个Future, 这个Future里是一系列的ResultSet结果.
          return Futures.successfulAsList(futures);
      }
focal_method.class_method_signature: ResultSets.queryAllAsList(Session session, String query, Object... partitionKeys)
focal_method.full_signature: public static Future<List<ResultSet>> queryAllAsList(Session session, String query, Object... partitionKeys)
focal_method.identifier: queryAllAsList
focal_method.invocations: sendQueries successfulAsList
focal_method.modifiers: public static
focal_method.parameters: (Session session, String query, Object... partitionKeys)
focal_method.return: Future<List<ResultSet>>
focal_method.signature: Future<List<ResultSet>> queryAllAsList(Session session, String query, Object... partitionKeys)