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 ;
2522import com .google .common .collect .ImmutableList ;
2623
2724import java .io .IOException ;
@@ -143,7 +140,7 @@ public Table build() {
143140 * @throws BigQueryException upon failure
144141 */
145142 public boolean exists () {
146- return bigquery .getTable (tableId (), TableOption .fields ()) != null ;
143+ return bigquery .getTable (tableId (), BigQuery . TableOption .fields ()) != null ;
147144 }
148145
149146 /**
@@ -153,7 +150,7 @@ public boolean exists() {
153150 * @return a {@code Table} object with latest information or {@code null} if not found
154151 * @throws BigQueryException upon failure
155152 */
156- public Table reload (TableOption ... options ) {
153+ public Table reload (BigQuery . TableOption ... options ) {
157154 return bigquery .getTable (tableId (), options );
158155 }
159156
@@ -165,7 +162,7 @@ public Table reload(TableOption... options) {
165162 * @return a {@code Table} object with updated information
166163 * @throws BigQueryException upon failure
167164 */
168- public Table update (TableOption ... options ) {
165+ public Table update (BigQuery . TableOption ... options ) {
169166 return bigquery .update (this , options );
170167 }
171168
@@ -216,7 +213,7 @@ public InsertAllResponse insert(Iterable<InsertAllRequest.RowToInsert> rows,
216213 * @param options table data list options
217214 * @throws BigQueryException upon failure
218215 */
219- public Page <List <FieldValue >> list (TableDataListOption ... options )
216+ public Page <List <FieldValue >> list (BigQuery . TableDataListOption ... options )
220217 throws BigQueryException {
221218 return bigquery .listTableData (tableId (), options );
222219 }
@@ -230,7 +227,7 @@ public Page<List<FieldValue>> list(TableDataListOption... options)
230227 * @param options job options
231228 * @throws BigQueryException upon failure
232229 */
233- public Job copy (String destinationDataset , String destinationTable , JobOption ... options )
230+ public Job copy (String destinationDataset , String destinationTable , BigQuery . JobOption ... options )
234231 throws BigQueryException {
235232 return copy (TableId .of (destinationDataset , destinationTable ), options );
236233 }
@@ -243,7 +240,7 @@ public Job copy(String destinationDataset, String destinationTable, JobOption...
243240 * @param options job options
244241 * @throws BigQueryException upon failure
245242 */
246- public Job copy (TableId destinationTable , JobOption ... options )
243+ public Job copy (TableId destinationTable , BigQuery . JobOption ... options )
247244 throws BigQueryException {
248245 CopyJobConfiguration configuration = CopyJobConfiguration .of (destinationTable , tableId ());
249246 return bigquery .create (JobInfo .of (configuration ), options );
@@ -259,7 +256,7 @@ public Job copy(TableId destinationTable, JobOption... options)
259256 * @param options job options
260257 * @throws BigQueryException upon failure
261258 */
262- public Job extract (String format , String destinationUri , JobOption ... options )
259+ public Job extract (String format , String destinationUri , BigQuery . JobOption ... options )
263260 throws BigQueryException {
264261 return extract (format , ImmutableList .of (destinationUri ), options );
265262 }
@@ -274,7 +271,7 @@ public Job extract(String format, String destinationUri, JobOption... options)
274271 * @param options job options
275272 * @throws BigQueryException upon failure
276273 */
277- public Job extract (String format , List <String > destinationUris , JobOption ... options )
274+ public Job extract (String format , List <String > destinationUris , BigQuery . JobOption ... options )
278275 throws BigQueryException {
279276 ExtractJobConfiguration extractConfiguration =
280277 ExtractJobConfiguration .of (tableId (), destinationUris , format );
@@ -291,7 +288,7 @@ public Job extract(String format, List<String> destinationUris, JobOption... opt
291288 * @param options job options
292289 * @throws BigQueryException upon failure
293290 */
294- public Job load (FormatOptions format , String sourceUri , JobOption ... options )
291+ public Job load (FormatOptions format , String sourceUri , BigQuery . JobOption ... options )
295292 throws BigQueryException {
296293 return load (format , ImmutableList .of (sourceUri ), options );
297294 }
@@ -306,7 +303,7 @@ public Job load(FormatOptions format, String sourceUri, JobOption... options)
306303 * @param options job options
307304 * @throws BigQueryException upon failure
308305 */
309- public Job load (FormatOptions format , List <String > sourceUris , JobOption ... options )
306+ public Job load (FormatOptions format , List <String > sourceUris , BigQuery . JobOption ... options )
310307 throws BigQueryException {
311308 LoadJobConfiguration loadConfig = LoadJobConfiguration .of (tableId (), sourceUris , format );
312309 return bigquery .create (JobInfo .of (loadConfig ), options );
0 commit comments