test_class.file: shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/builder/ResponsePacketBuilderTest.java
test_class.identifier: ResponsePacketBuilderTest
test_case.body: @Test
      public void assertBuildQueryResponsePackets() {
          QueryHeader queryHeader1 = new QueryHeader("schema1", "table1", "columnLabel1", "columnName1", 4, 5, 6, false, true, false, true);
          QueryHeader queryHeader2 = new QueryHeader("schema2", "table2", "columnLabel2", "columnName2", 7, 8, 9, false, true, true, true);
          List<QueryHeader> queryHeaders = Arrays.asList(new QueryHeader[]{queryHeader1, queryHeader2});
          QueryResponse queryResponse = new QueryResponse(queryHeaders);
          Collection<DatabasePacket<?>> actual = ResponsePacketBuilder.buildQueryResponsePackets(queryResponse);
          assertThat(actual.stream().findAny().get(), anyOf(instanceOf(MySQLFieldCountPacket.class), instanceOf(MySQLColumnDefinition41Packet.class), instanceOf(MySQLEofPacket.class)));
      }
test_case.class_method_signature: ResponsePacketBuilderTest.assertBuildQueryResponsePackets()
test_case.full_signature: @Test public void assertBuildQueryResponsePackets()
test_case.identifier: assertBuildQueryResponsePackets
test_case.invocations: asList buildQueryResponsePackets assertThat get findAny stream anyOf instanceOf instanceOf instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertBuildQueryResponsePackets()
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/builder/ResponsePacketBuilder.java
focal_class.identifier: ResponsePacketBuilder
focal_class.class_method_signature: ResponsePacketBuilder.buildQueryResponsePackets(final QueryResponse queryResponse)
focal_class.full_signature: public static Collection<DatabasePacket<?>> buildQueryResponsePackets(final QueryResponse queryResponse)
focal_class.identifier: buildQueryResponsePackets
focal_class.modifiers: public static
focal_class.parameters: (final QueryResponse queryResponse)
focal_class.return: Collection<DatabasePacket<?>>
focal_class.signature: Collection<DatabasePacket<?>> buildQueryResponsePackets(final QueryResponse queryResponse)
focal_class.class_method_signature: ResponsePacketBuilder.getColumnFieldDetailFlag(final QueryHeader header)
focal_class.full_signature: private static int getColumnFieldDetailFlag(final QueryHeader header)
focal_class.identifier: getColumnFieldDetailFlag
focal_class.modifiers: private static
focal_class.parameters: (final QueryHeader header)
focal_class.return: int
focal_class.signature: int getColumnFieldDetailFlag(final QueryHeader header)
focal_class.class_method_signature: ResponsePacketBuilder.buildUpdateResponsePackets(final UpdateResponse updateResponse)
focal_class.full_signature: public static Collection<DatabasePacket<?>> buildUpdateResponsePackets(final UpdateResponse updateResponse)
focal_class.identifier: buildUpdateResponsePackets
focal_class.modifiers: public static
focal_class.parameters: (final UpdateResponse updateResponse)
focal_class.return: Collection<DatabasePacket<?>>
focal_class.signature: Collection<DatabasePacket<?>> buildUpdateResponsePackets(final UpdateResponse updateResponse)
focal_method.body: public static Collection<DatabasePacket<?>> buildQueryResponsePackets(final QueryResponse queryResponse) {
          Collection<DatabasePacket<?>> result = new LinkedList<>();
          int sequenceId = 0;
          List<QueryHeader> queryHeader = queryResponse.getQueryHeaders();
          result.add(new MySQLFieldCountPacket(++sequenceId, queryHeader.size()));
          for (QueryHeader each : queryHeader) {
              result.add(new MySQLColumnDefinition41Packet(++sequenceId, getColumnFieldDetailFlag(each), each.getSchema(), each.getTable(), each.getTable(),
                      each.getColumnLabel(), each.getColumnName(), each.getColumnLength(), MySQLColumnType.valueOfJDBCType(each.getColumnType()), each.getDecimals()));
          }
          result.add(new MySQLEofPacket(++sequenceId));
          return result;
      }
focal_method.class_method_signature: ResponsePacketBuilder.buildQueryResponsePackets(final QueryResponse queryResponse)
focal_method.full_signature: public static Collection<DatabasePacket<?>> buildQueryResponsePackets(final QueryResponse queryResponse)
focal_method.identifier: buildQueryResponsePackets
focal_method.invocations: getQueryHeaders add size add getColumnFieldDetailFlag getSchema getTable getTable getColumnLabel getColumnName getColumnLength valueOfJDBCType getColumnType getDecimals add
focal_method.modifiers: public static
focal_method.parameters: (final QueryResponse queryResponse)
focal_method.return: Collection<DatabasePacket<?>>
focal_method.signature: Collection<DatabasePacket<?>> buildQueryResponsePackets(final QueryResponse queryResponse)