lib/logstash/outputs/bigquery/batcher.rb
# removes all elements from the batch
removes all elements from the batch
removes all elements from the batch
def clear
          @lock.write_lock.lock
          @batch = []
          @batch_size_bytes = 0
          @lock.write_lock.unlock
        end
def clear @lock . write_lock . lock @batch = [ ] @batch_size_bytes = 0 @lock . write_lock . unlock end
removes all elements from the batch
removes all elements from the batch