docstr: Adds a table to the queue. All tables added during lifetime of an instance must have the same schema.
  
  :param table: An instance of a pyarrow table.
  :return: None
docstr_tok: ["Adds","a","table","to","the","queue",".","All","tables","added","during","lifetime","of","an","instance","must","have","the","same","schema",".",":","param","table",":","An","instance","of","a","pyarrow","table",".",":","return",":","None"]
code: def put(self, table):
      """Adds a table to the queue. All tables added during lifetime of an instance must have the same schema.
  
      :param table: An instance of a pyarrow table.
      :return: None
      """
  
      # We store a list of arrow batches. When retrieving, we consume parts or entire batches, until batch_size of
      # rows are acquired.
      record_batches = table.to_batches()
      for record_batch in record_batches:
          self._buffer.append(record_batch)
          self._cumulative_len += record_batch.num_rows
  
imports: from collections import deque
  import pyarrow
label_desc: Use image node_id 2 for calling the BatchingTableQueue obj's underlying member method code with example usage: obj.put(table) without return types