The following method inserts two rows into the destination table. The rows inserted via BigQuery API are called streaming insert rows. These rows are available for querying immediately but will not be available for copying to other tables or for export immediately:
Call this method in the main method and pass the required parameters. Customize this method to be generic for your requirements. Streaming insert is charged whereas loading data to the table from a file is free: