File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
benchmark/java/com/google/cloud/bigquery/benchmark
main/java/com/google/cloud/bigquery/spi/v2
samples/snippets/src/main/java/com/example/bigquery Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 27
27
</dependency >
28
28
<dependency >
29
29
<groupId >com.google.http-client</groupId >
30
- <artifactId >google-http-client-jackson2 </artifactId >
30
+ <artifactId >google-http-client-gson </artifactId >
31
31
</dependency >
32
32
<dependency >
33
33
<groupId >com.google.cloud</groupId >
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .cloud .bigquery .benchmark ;
18
18
19
- import com .google .api .client .json .jackson2 . JacksonFactory ;
19
+ import com .google .api .client .json .gson . GsonFactory ;
20
20
import com .google .cloud .bigquery .BigQuery ;
21
21
import com .google .cloud .bigquery .BigQueryOptions ;
22
22
import com .google .cloud .bigquery .FieldValue ;
@@ -40,7 +40,7 @@ public static void main(String[] args) throws Exception {
40
40
return ;
41
41
}
42
42
String [] requests =
43
- new JacksonFactory ()
43
+ new GsonFactory ()
44
44
.createJsonParser (new FileInputStream (args [0 ]))
45
45
.parseAndClose (String [].class );
46
46
Original file line number Diff line number Diff line change 30
30
import com .google .api .client .http .HttpTransport ;
31
31
import com .google .api .client .http .json .JsonHttpContent ;
32
32
import com .google .api .client .json .JsonFactory ;
33
- import com .google .api .client .json .jackson2 . JacksonFactory ;
33
+ import com .google .api .client .json .gson . GsonFactory ;
34
34
import com .google .api .core .InternalApi ;
35
35
import com .google .api .core .InternalExtensionOnly ;
36
36
import com .google .api .services .bigquery .Bigquery ;
@@ -105,7 +105,7 @@ public HttpBigQueryRpc(BigQueryOptions options) {
105
105
HttpRequestInitializer initializer = transportOptions .getHttpRequestInitializer (options );
106
106
this .options = options ;
107
107
bigquery =
108
- new Bigquery .Builder (transport , new JacksonFactory (), initializer )
108
+ new Bigquery .Builder (transport , new GsonFactory (), initializer )
109
109
.setRootUrl (options .getHost ())
110
110
.setApplicationName (options .getApplicationName ())
111
111
.build ();
Original file line number Diff line number Diff line change 24
24
import com .google .api .client .googleapis .auth .oauth2 .GoogleClientSecrets ;
25
25
import com .google .api .client .googleapis .javanet .GoogleNetHttpTransport ;
26
26
import com .google .api .client .json .JsonFactory ;
27
- import com .google .api .client .json .jackson2 . JacksonFactory ;
27
+ import com .google .api .client .json .gson . GsonFactory ;
28
28
import com .google .api .client .util .store .FileDataStoreFactory ;
29
29
import com .google .api .gax .paging .Page ;
30
30
import com .google .auth .oauth2 .GoogleCredentials ;
@@ -49,7 +49,7 @@ public class AuthUserFlow {
49
49
50
50
private static final File DATA_STORE_DIR =
51
51
new File (AuthUserFlow .class .getResource ("/" ).getPath (), "credentials" );
52
- private static final JsonFactory JSON_FACTORY = JacksonFactory .getDefaultInstance ();
52
+ private static final JsonFactory JSON_FACTORY = GsonFactory .getDefaultInstance ();
53
53
// i.e redirect_uri http://localhost:61984/Callback
54
54
private static final int LOCAL_RECEIVER_PORT = 61984 ;
55
55
Original file line number Diff line number Diff line change 24
24
import com .google .api .client .googleapis .auth .oauth2 .GoogleClientSecrets ;
25
25
import com .google .api .client .googleapis .javanet .GoogleNetHttpTransport ;
26
26
import com .google .api .client .json .JsonFactory ;
27
- import com .google .api .client .json .jackson2 . JacksonFactory ;
27
+ import com .google .api .client .json .gson . GsonFactory ;
28
28
import com .google .api .client .util .store .FileDataStoreFactory ;
29
29
import com .google .auth .oauth2 .GoogleCredentials ;
30
30
import com .google .auth .oauth2 .UserCredentials ;
@@ -49,7 +49,7 @@ public class AuthUserQuery {
49
49
50
50
private static final File DATA_STORE_DIR =
51
51
new File (AuthUserQuery .class .getResource ("/" ).getPath (), "credentials" );
52
- private static final JsonFactory JSON_FACTORY = JacksonFactory .getDefaultInstance ();
52
+ private static final JsonFactory JSON_FACTORY = GsonFactory .getDefaultInstance ();
53
53
// i.e redirect_uri http://localhost:61984/Callback
54
54
private static final int LOCAL_RECEIVER_PORT = 61984 ;
55
55
You can’t perform that action at this time.
0 commit comments