def METHOD_NAME(self) -> List[QueryData]:
    """Clears the query data buffer and returns the data.
    Returns:
        List[QueryData]: The query data.
    """
    query_data_buffer = self._query_data_buffer
    self._query_data_buffer = []
    return query_data_buffer