Skip to content

Commit 0526a69

Browse files
yihanzhenpongad
authored andcommitted
---
yaml --- r: 9149 b: refs/heads/spanner-gapic-migration c: f3aa527 h: refs/heads/master i: 9147: 3fadd2b
1 parent 3d0ed6b commit 0526a69

2 files changed

Lines changed: 175 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ refs/tags/v0.36.0: 6b75c61f73e6827b3ca379bd54f88f750290162f
100100
refs/tags/v0.37.0: db2e142f92601709fdd48db159776f905742e30f
101101
refs/heads/mrschmidt-revertfix: c4438a78f19430db9c883f997a94144230367d5d
102102
refs/heads/mrschmidt-sizefix: 627a3bfa30bb6f4f76af47b228c38b208dd921e0
103-
refs/heads/spanner-gapic-migration: 54a4e62497b0985b15b409e81625b978a1ac8a18
103+
refs/heads/spanner-gapic-migration: f3aa5279e6824fd5196435a2232625542540ce46
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
/*
2+
* Copyright 2018 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.spanner.spi.v1;
18+
19+
import com.google.cloud.spanner.SpannerException;
20+
import com.google.cloud.spanner.spi.v1.SpannerRpc.Option;
21+
import com.google.longrunning.Operation;
22+
import com.google.protobuf.FieldMask;
23+
import com.google.spanner.admin.database.v1.Database;
24+
import com.google.spanner.admin.instance.v1.Instance;
25+
import com.google.spanner.admin.instance.v1.InstanceConfig;
26+
import com.google.spanner.v1.BeginTransactionRequest;
27+
import com.google.spanner.v1.CommitRequest;
28+
import com.google.spanner.v1.CommitResponse;
29+
import com.google.spanner.v1.ExecuteSqlRequest;
30+
import com.google.spanner.v1.PartitionQueryRequest;
31+
import com.google.spanner.v1.PartitionReadRequest;
32+
import com.google.spanner.v1.PartitionResponse;
33+
import com.google.spanner.v1.ReadRequest;
34+
import com.google.spanner.v1.RollbackRequest;
35+
import com.google.spanner.v1.Session;
36+
import com.google.spanner.v1.Transaction;
37+
import java.util.List;
38+
import java.util.Map;
39+
import javax.annotation.Nullable;
40+
41+
42+
/** Implementation of Cloud Spanner remote calls using Gapic libraries. */
43+
public class GapicSpannerRpc implements SpannerRpc {
44+
45+
@Override
46+
public Paginated<InstanceConfig> listInstanceConfigs(int pageSize, @Nullable String pageToken)
47+
throws SpannerException {
48+
throw new UnsupportedOperationException("Not implemented yet.");
49+
}
50+
51+
@Override
52+
public InstanceConfig getInstanceConfig(String instanceConfigName) throws SpannerException {
53+
throw new UnsupportedOperationException("Not implemented yet.");
54+
}
55+
56+
@Override
57+
public Paginated<Instance> listInstances(
58+
int pageSize, @Nullable String pageToken, @Nullable String filter) throws SpannerException {
59+
throw new UnsupportedOperationException("Not implemented yet.");
60+
}
61+
62+
@Override
63+
public Operation createInstance(String parent, String instanceId, Instance instance)
64+
throws SpannerException {
65+
throw new UnsupportedOperationException("Not implemented yet.");
66+
}
67+
68+
@Override
69+
public Operation updateInstance(Instance instance, FieldMask fieldMask) throws SpannerException {
70+
throw new UnsupportedOperationException("Not implemented yet.");
71+
}
72+
73+
@Override
74+
public Instance getInstance(String instanceName) throws SpannerException {
75+
throw new UnsupportedOperationException("Not implemented yet.");
76+
}
77+
78+
@Override
79+
public void deleteInstance(String instanceName) throws SpannerException {
80+
throw new UnsupportedOperationException("Not implemented yet.");
81+
}
82+
83+
@Override
84+
public Paginated<Database> listDatabases(
85+
String instanceName, int pageSize, @Nullable String pageToken) throws SpannerException {
86+
throw new UnsupportedOperationException("Not implemented yet.");
87+
}
88+
89+
@Override
90+
public Operation createDatabase(String instanceName, String createDatabaseStatement,
91+
Iterable<String> additionalStatements) throws SpannerException {
92+
throw new UnsupportedOperationException("Not implemented yet.");
93+
}
94+
95+
@Override
96+
public Operation updateDatabaseDdl(String databaseName, Iterable<String> updateDatabaseStatements,
97+
@Nullable String updateId) throws SpannerException {
98+
throw new UnsupportedOperationException("Not implemented yet.");
99+
}
100+
101+
@Override
102+
public void dropDatabase(String databaseName) throws SpannerException {
103+
throw new UnsupportedOperationException("Not implemented yet.");
104+
}
105+
106+
@Override
107+
public Database getDatabase(String databaseName) throws SpannerException {
108+
throw new UnsupportedOperationException("Not implemented yet.");
109+
}
110+
111+
@Override
112+
public List<String> getDatabaseDdl(String databaseName) throws SpannerException {
113+
throw new UnsupportedOperationException("Not implemented yet.");
114+
}
115+
116+
@Override
117+
public Operation getOperation(String name) throws SpannerException {
118+
throw new UnsupportedOperationException("Not implemented yet.");
119+
}
120+
121+
@Override
122+
public Session createSession(String databaseName, @Nullable Map<String, String> labels,
123+
@Nullable Map<Option, ?> options) throws SpannerException {
124+
throw new UnsupportedOperationException("Not implemented yet.");
125+
}
126+
127+
@Override
128+
public void deleteSession(String sessionName, @Nullable Map<Option, ?> options)
129+
throws SpannerException {
130+
throw new UnsupportedOperationException("Not implemented yet.");
131+
}
132+
133+
@Override
134+
public StreamingCall read(
135+
ReadRequest request, ResultStreamConsumer consumer, @Nullable Map<Option, ?> options) {
136+
throw new UnsupportedOperationException("Not implemented yet.");
137+
}
138+
139+
@Override
140+
public StreamingCall executeQuery(
141+
ExecuteSqlRequest request, ResultStreamConsumer consumer, @Nullable Map<Option, ?> options) {
142+
throw new UnsupportedOperationException("Not implemented yet.");
143+
}
144+
145+
@Override
146+
public Transaction beginTransaction(
147+
BeginTransactionRequest request, @Nullable Map<Option, ?> options) throws SpannerException {
148+
throw new UnsupportedOperationException("Not implemented yet.");
149+
}
150+
151+
@Override
152+
public CommitResponse commit(CommitRequest commitRequest, @Nullable Map<Option, ?> options)
153+
throws SpannerException {
154+
throw new UnsupportedOperationException("Not implemented yet.");
155+
}
156+
157+
@Override
158+
public void rollback(RollbackRequest request, @Nullable Map<Option, ?> options)
159+
throws SpannerException {
160+
throw new UnsupportedOperationException("Not implemented yet.");
161+
}
162+
163+
@Override
164+
public PartitionResponse partitionQuery(
165+
PartitionQueryRequest request, @Nullable Map<Option, ?> options) throws SpannerException {
166+
throw new UnsupportedOperationException("Not implemented yet.");
167+
}
168+
169+
@Override
170+
public PartitionResponse partitionRead(
171+
PartitionReadRequest request, @Nullable Map<Option, ?> options) throws SpannerException {
172+
throw new UnsupportedOperationException("Not implemented yet.");
173+
}
174+
}

0 commit comments

Comments
 (0)