1919import static com .google .common .base .Preconditions .checkNotNull ;
2020
2121import com .google .cloud .Page ;
22+ import com .google .cloud .bigquery .BigQuery .JobOption ;
23+ import com .google .cloud .bigquery .BigQuery .TableDataListOption ;
24+ import com .google .cloud .bigquery .BigQuery .TableOption ;
2225import com .google .common .collect .ImmutableList ;
2326
2427import java .io .IOException ;
@@ -140,7 +143,7 @@ public Table build() {
140143 * @throws BigQueryException upon failure
141144 */
142145 public boolean exists () {
143- return bigquery .getTable (tableId (), BigQuery . TableOption .fields ()) != null ;
146+ return bigquery .getTable (tableId (), TableOption .fields ()) != null ;
144147 }
145148
146149 /**
@@ -150,7 +153,7 @@ public boolean exists() {
150153 * @return a {@code Table} object with latest information or {@code null} if not found
151154 * @throws BigQueryException upon failure
152155 */
153- public Table reload (BigQuery . TableOption ... options ) {
156+ public Table reload (TableOption ... options ) {
154157 return bigquery .getTable (tableId (), options );
155158 }
156159
@@ -162,7 +165,7 @@ public Table reload(BigQuery.TableOption... options) {
162165 * @return a {@code Table} object with updated information
163166 * @throws BigQueryException upon failure
164167 */
165- public Table update (BigQuery . TableOption ... options ) {
168+ public Table update (TableOption ... options ) {
166169 return bigquery .update (this , options );
167170 }
168171
@@ -213,7 +216,7 @@ public InsertAllResponse insert(Iterable<InsertAllRequest.RowToInsert> rows,
213216 * @param options table data list options
214217 * @throws BigQueryException upon failure
215218 */
216- public Page <List <FieldValue >> list (BigQuery . TableDataListOption ... options )
219+ public Page <List <FieldValue >> list (TableDataListOption ... options )
217220 throws BigQueryException {
218221 return bigquery .listTableData (tableId (), options );
219222 }
@@ -227,7 +230,7 @@ public Page<List<FieldValue>> list(BigQuery.TableDataListOption... options)
227230 * @param options job options
228231 * @throws BigQueryException upon failure
229232 */
230- public Job copy (String destinationDataset , String destinationTable , BigQuery . JobOption ... options )
233+ public Job copy (String destinationDataset , String destinationTable , JobOption ... options )
231234 throws BigQueryException {
232235 return copy (TableId .of (destinationDataset , destinationTable ), options );
233236 }
@@ -240,7 +243,7 @@ public Job copy(String destinationDataset, String destinationTable, BigQuery.Job
240243 * @param options job options
241244 * @throws BigQueryException upon failure
242245 */
243- public Job copy (TableId destinationTable , BigQuery . JobOption ... options )
246+ public Job copy (TableId destinationTable , JobOption ... options )
244247 throws BigQueryException {
245248 CopyJobConfiguration configuration = CopyJobConfiguration .of (destinationTable , tableId ());
246249 return bigquery .create (JobInfo .of (configuration ), options );
@@ -256,7 +259,7 @@ public Job copy(TableId destinationTable, BigQuery.JobOption... options)
256259 * @param options job options
257260 * @throws BigQueryException upon failure
258261 */
259- public Job extract (String format , String destinationUri , BigQuery . JobOption ... options )
262+ public Job extract (String format , String destinationUri , JobOption ... options )
260263 throws BigQueryException {
261264 return extract (format , ImmutableList .of (destinationUri ), options );
262265 }
@@ -271,7 +274,7 @@ public Job extract(String format, String destinationUri, BigQuery.JobOption... o
271274 * @param options job options
272275 * @throws BigQueryException upon failure
273276 */
274- public Job extract (String format , List <String > destinationUris , BigQuery . JobOption ... options )
277+ public Job extract (String format , List <String > destinationUris , JobOption ... options )
275278 throws BigQueryException {
276279 ExtractJobConfiguration extractConfiguration =
277280 ExtractJobConfiguration .of (tableId (), destinationUris , format );
@@ -288,7 +291,7 @@ public Job extract(String format, List<String> destinationUris, BigQuery.JobOpti
288291 * @param options job options
289292 * @throws BigQueryException upon failure
290293 */
291- public Job load (FormatOptions format , String sourceUri , BigQuery . JobOption ... options )
294+ public Job load (FormatOptions format , String sourceUri , JobOption ... options )
292295 throws BigQueryException {
293296 return load (format , ImmutableList .of (sourceUri ), options );
294297 }
@@ -303,7 +306,7 @@ public Job load(FormatOptions format, String sourceUri, BigQuery.JobOption... op
303306 * @param options job options
304307 * @throws BigQueryException upon failure
305308 */
306- public Job load (FormatOptions format , List <String > sourceUris , BigQuery . JobOption ... options )
309+ public Job load (FormatOptions format , List <String > sourceUris , JobOption ... options )
307310 throws BigQueryException {
308311 LoadJobConfiguration loadConfig = LoadJobConfiguration .of (tableId (), sourceUris , format );
309312 return bigquery .create (JobInfo .of (loadConfig ), options );
0 commit comments