File tree Expand file tree Collapse file tree
src/main/java/com/google/cloud/bigtable/data/v2/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 308308 <className >com/google/cloud/bigtable/data/v2/models/Heartbeat</className >
309309 <method >*getEstimatedLowWatermarkTime()</method >
310310 </difference >
311+ <difference >
312+ <!-- TargetId is an InternalApi-->
313+ <differenceType >7012</differenceType >
314+ <className >com/google/cloud/bigtable/data/v2/models/TargetId</className >
315+ <method >*scopedForMaterializedView()</method >
316+ </difference >
311317</differences >
Original file line number Diff line number Diff line change @@ -109,35 +109,7 @@ public static String extractMaterializedViewIdFromMaterializedViewName(
109109 /** A helper to convert fully qualified tableName andauthorizedViewName to a {@link TargetId} */
110110 public static TargetId extractTargetId (
111111 @ Nonnull String tableName , @ Nonnull String authorizedViewName ) {
112- if (tableName .isEmpty () && authorizedViewName .isEmpty ()) {
113- throw new IllegalArgumentException (
114- "Either table name, authorized view name or materialized view name must be specified. Table name: "
115- + tableName
116- + ", authorized view name: "
117- + authorizedViewName );
118- }
119- int names = 0 ;
120- if (!tableName .isEmpty ()) {
121- ++names ;
122- }
123- if (!authorizedViewName .isEmpty ()) {
124- ++names ;
125- }
126- if (names > 1 ) {
127- throw new IllegalArgumentException (
128- "Only one of table name and authorized view name can be specified at the same time. Table name: "
129- + tableName
130- + ", authorized view name: "
131- + authorizedViewName );
132- }
133-
134- if (!tableName .isEmpty ()) {
135- String tableId = extractTableIdFromTableName (tableName );
136- return TableId .of (tableId );
137- }
138- String tableId = extractTableIdFromAuthorizedViewName (authorizedViewName );
139- String authorizedViewId = extractAuthorizedViewIdFromAuthorizedViewName (authorizedViewName );
140- return AuthorizedViewId .of (tableId , authorizedViewId );
112+ return extractTargetId (tableName , authorizedViewName , "" );
141113 }
142114
143115 /**
You can’t perform that action at this time.
0 commit comments