Created
August 1, 2018 11:47
-
-
Save smzn/f98e2a961ab2f938a7681b9ac96610ad to your computer and use it in GitHub Desktop.
createTable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void createTable() { //BigQueryにテーブルを作成 | |
Field row[] = new Field[column+1]; | |
for(int i = 0; i < column; i++) { | |
row[i] = Field.of("sum"+i, LegacySQLTypeName.INTEGER); | |
} | |
row[column] = Field.of("index", LegacySQLTypeName.INTEGER); | |
Schema schema = Schema.of(row); | |
StandardTableDefinition tableDefinition = StandardTableDefinition.of(schema); | |
bigQuery.create(TableInfo.of(tableId, tableDefinition)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment