@@ -35,8 +35,6 @@ public interface BigQueryRpc {
35
35
36
36
// These options are part of the Google Cloud BigQuery query parameters
37
37
enum Option {
38
- QUOTA_USER ("quotaUser" ),
39
- USER_IP ("userIp" ),
40
38
FIELDS ("fields" ),
41
39
DELETE_CONTENTS ("deleteContents" ),
42
40
ALL_DATASETS ("all" ),
@@ -98,23 +96,57 @@ public Y y() {
98
96
}
99
97
}
100
98
99
+ /**
100
+ * Returns the requested dataset or {@code null} if not found.
101
+ *
102
+ * @throws BigQueryException upon failure
103
+ */
101
104
Dataset getDataset (String datasetId , Map <Option , ?> options ) throws BigQueryException ;
102
105
106
+ /**
107
+ * Lists the project's datasets. Partial information is returned on a dataset (datasetReference,
108
+ * friendlyName and id). To get full information use {@link #getDataset(String, Map)}.
109
+ *
110
+ * @throws BigQueryException upon failure
111
+ */
103
112
Tuple <String , Iterable <Dataset >> listDatasets (Map <Option , ?> options ) throws BigQueryException ;
104
113
105
114
Dataset create (Dataset dataset , Map <Option , ?> options ) throws BigQueryException ;
106
115
116
+ /**
117
+ * Delete the requested dataset.
118
+ *
119
+ * @return {@code true} if dataset was deleted, {@code false} if it was not found
120
+ * @throws BigQueryException upon failure
121
+ */
107
122
boolean deleteDataset (String datasetId , Map <Option , ?> options ) throws BigQueryException ;
108
123
109
124
Dataset patch (Dataset dataset , Map <Option , ?> options ) throws BigQueryException ;
110
125
126
+ /**
127
+ * Returns the requested table or {@code null} if not found.
128
+ *
129
+ * @throws BigQueryException upon failure
130
+ */
111
131
Table getTable (String datasetId , String tableId , Map <Option , ?> options ) throws BigQueryException ;
112
132
133
+ /**
134
+ * Lists the dataset's tables. Partial information is returned on a table (tableReference,
135
+ * friendlyName, id and type). To get full information use {@link #getTable(String, String, Map)}.
136
+ *
137
+ * @throws BigQueryException upon failure
138
+ */
113
139
Tuple <String , Iterable <Table >> listTables (String dataset , Map <Option , ?> options )
114
140
throws BigQueryException ;
115
141
116
142
Table create (Table table , Map <Option , ?> options ) throws BigQueryException ;
117
143
144
+ /**
145
+ * Delete the requested table.
146
+ *
147
+ * @return {@code true} if table was deleted, {@code false} if it was not found
148
+ * @throws BigQueryException upon failure
149
+ */
118
150
boolean deleteTable (String datasetId , String tableId , Map <Option , ?> options )
119
151
throws BigQueryException ;
120
152
@@ -126,8 +158,18 @@ TableDataInsertAllResponse insertAll(TableReference table, TableDataInsertAllReq
126
158
Tuple <String , Iterable <TableRow >> listTableData (String datasetId , String tableId ,
127
159
Map <Option , ?> options ) throws BigQueryException ;
128
160
161
+ /**
162
+ * Returns the requested job or {@code null} if not found.
163
+ *
164
+ * @throws BigQueryException upon failure
165
+ */
129
166
Job getJob (String jobId , Map <Option , ?> options ) throws BigQueryException ;
130
167
168
+ /**
169
+ * Lists the project's jobs.
170
+ *
171
+ * @throws BigQueryException upon failure
172
+ */
131
173
Tuple <String , Iterable <Job >> listJobs (Map <Option , ?> options ) throws BigQueryException ;
132
174
133
175
Job create (Job job , Map <Option , ?> options ) throws BigQueryException ;
0 commit comments