datasetName: dataset name
tableName: table in the data set
list: records to be inserted
Return:
the result of the insertion
importCSVIntoTable
Import data from CSV file to the dataset table. The header in the CSV file can be skipped if needed.
BigQueryApi.importCSVIntoTable(String datasetName, String tableName, String pathToFile,
List<Map<String, Object>> csvSchema, List<Map<String, Object>> classAttrs, List<Map<String, Object>> mappings, int numberOfRowsToSkip)
or
BigQueryApi.importCSVIntoTable(String datasetName, String tableName, String pathToFile, Schema schema, int numberOfRowsToSkip)
or
BigQueryApi.importCSVIntoTable(String datasetName, String tableName, String path, String fileName, Schema schema, int numberOfRowsToSkip)
parameters:
datasetName: name of the dataset
tableName: name of the table in the data set
pathToFile: absolute path to the file on the system
csvSchema: the csv schema
classAttrs: attributes
mappings: mapping of attributes with schema
numberOfRowsToSkip: if skipping rows from the top of the csv file
fileName: the name of the file
schema: the schema
Return:
the result of the operation
importCSVbyURIIntoTable
Same as above but using the URI for CSV file location.
BigQueryApi.importCSVbyURIIntoTable(String datasetName, String tableName, String sourceUri, Schema schema, int numberOfRowsToSkip)
parameters:
datasetName: name of the data set
tableName: name of the table in the dataset
sourceUri: the uri of source file
schema: the scheme of the csv
numberOfRowsToSkip: csv line to skip from the start
datasetName: name of the data set
tableName: name of the table in the data set
pathToFile: path to the CSV file
path: same as above
fileName: name of the file
Return:
the result of the operation
exportTableToCSVByURI
Same as above but using the URI for the csv file location
filePath: the path of the CSV file
columnNames: table column names
dataSetName: name of the data set
bqTableName: name of table
query: query to run
functionName: extra function to be called
Return:
the result of the operation
getpage
Get page details
BigQueryApi.getPage(String query, long start, long size)